Wallet: tx verification failed: invalid output #206

Closed
opened 5 years ago by wowario · 8 comments
wowario commented 5 years ago (Migrated from github.com)
Owner

When sending a transaction in "Testnet 2", I get this error:

2019-06-05 07:14:23.084	E Ringct type 5 is not allowed from v14
2019-06-05 07:14:23.085	I Transaction with id= <2e8086fb9dc895a8ab2b81c475178c921109680bb04fc3d5f69a0572fcafafb6> has at least one invalid output
2019-06-05 07:14:23.085	E Transaction verification failed: <2e8086fb9dc895a8ab2b81c475178c921109680bb04fc3d5f69a0572fcafafb6>
2019-06-05 07:14:23.085	W [on_send_raw_tx]: tx verification failed: invalid output

Related to e757efb83d/src/cryptonote_core/blockchain.cpp (L2759)

When sending a transaction in "[Testnet 2](https://github.com/wownero/meta/issues/23)", I get this error: ``` 2019-06-05 07:14:23.084 E Ringct type 5 is not allowed from v14 2019-06-05 07:14:23.085 I Transaction with id= <2e8086fb9dc895a8ab2b81c475178c921109680bb04fc3d5f69a0572fcafafb6> has at least one invalid output 2019-06-05 07:14:23.085 E Transaction verification failed: <2e8086fb9dc895a8ab2b81c475178c921109680bb04fc3d5f69a0572fcafafb6> 2019-06-05 07:14:23.085 W [on_send_raw_tx]: tx verification failed: invalid output ``` Related to https://github.com/wownero/wownero/blob/e757efb83df5215a0749faa88e3145d070e656e8/src/cryptonote_core/blockchain.cpp#L2759
wowario commented 5 years ago (Migrated from github.com)
Owner

@fuwa0529 this could be related to the error you mentioned

@fuwa0529 this could be related to the error you mentioned
fuwa0529 commented 5 years ago (Migrated from github.com)
Owner

hmm, great. Will have to check daemon log later, too drunk to be rational.

hmm, great. Will have to check daemon log later, too drunk to be rational.
wowario commented 5 years ago (Migrated from github.com)
Owner

hard-coded {rct::RangeProofPaddedBulletproof, 0} in Wallet2.cpp, but hit the following error message:

2019-06-05 14:32:51.160	I [127.0.0.1:35478 INC] calling /sendrawtransaction
2019-06-05 14:32:51.161	E Insane bulletproof L size
2019-06-05 14:32:51.162	I transaction with hash 23ad125975b8e5b53ba2b42908584510bbb2dcfb4982bf1843201e8331cc6e42 not found in db
2019-06-05 14:32:51.292	I cache size: 7744 kB
2019-06-05 14:32:51.292	E Verification failure at step 1
2019-06-05 14:32:51.292	I Aggregate range proof verified failed
2019-06-05 14:32:51.292	I One transaction among this group has bad semantics, verifying one at a time
2019-06-05 14:32:51.292	I WRONG TRANSACTION BLOB, Failed to check tx <23ad125975b8e5b53ba2b42908584510bbb2dcfb4982bf1843201e8331cc6e42> semantic, rejected
2019-06-05 14:32:51.293	W [on_send_raw_tx]: tx verification failed
hard-coded `{rct::RangeProofPaddedBulletproof, 0}` in Wallet2.cpp, but hit the following error message: ``` 2019-06-05 14:32:51.160 I [127.0.0.1:35478 INC] calling /sendrawtransaction 2019-06-05 14:32:51.161 E Insane bulletproof L size 2019-06-05 14:32:51.162 I transaction with hash 23ad125975b8e5b53ba2b42908584510bbb2dcfb4982bf1843201e8331cc6e42 not found in db 2019-06-05 14:32:51.292 I cache size: 7744 kB 2019-06-05 14:32:51.292 E Verification failure at step 1 2019-06-05 14:32:51.292 I Aggregate range proof verified failed 2019-06-05 14:32:51.292 I One transaction among this group has bad semantics, verifying one at a time 2019-06-05 14:32:51.292 I WRONG TRANSACTION BLOB, Failed to check tx <23ad125975b8e5b53ba2b42908584510bbb2dcfb4982bf1843201e8331cc6e42> semantic, rejected 2019-06-05 14:32:51.293 W [on_send_raw_tx]: tx verification failed ```
fuwa0529 commented 5 years ago (Migrated from github.com)
Owner

Error log in the daemon is reproducible.

This line seems suspiciously different:

51766d026b/src/wallet/wallet2.cpp (L9179)

vs

e757efb83d/src/wallet/wallet2.cpp (L9180)

Error log in the daemon is reproducible. This line seems suspiciously different: https://github.com/monero-project/monero/blob/51766d026bb0337d7bff17f1e3c0c403b21eaefd/src/wallet/wallet2.cpp#L9179 vs https://github.com/wownero/wownero/blob/e757efb83df5215a0749faa88e3145d070e656e8/src/wallet/wallet2.cpp#L9180
fuwa0529 commented 5 years ago (Migrated from github.com)
Owner

If I swap this line with that of monero's, I get a different error:

2019-06-05 22:49:28.157 E Bad bulletproofs L size
2019-06-05 22:49:28.157 E Failed to expand transaction data
2019-06-05 22:49:28.157 I WRONG TRANSACTION BLOB, Failed to parse, rejected
2019-06-05 22:49:28.157 W [on_send_raw_tx]: tx verification failed
If I swap this line with that of monero's, I get a different error: ``` 2019-06-05 22:49:28.157 E Bad bulletproofs L size 2019-06-05 22:49:28.157 E Failed to expand transaction data 2019-06-05 22:49:28.157 I WRONG TRANSACTION BLOB, Failed to parse, rejected 2019-06-05 22:49:28.157 W [on_send_raw_tx]: tx verification failed ```
fuwa0529 commented 5 years ago (Migrated from github.com)
Owner

If I try to send a large amount, like 40, comparing to a small one, like 5, a different error:

2019-06-05 22:53:00.162 E Insane bulletproof L size
2019-06-05 22:53:00.162 I transaction with hash 1d1b6b75ee7106150703ca5dd8f2298d6e3fe97e9f719eba42b05f3129835bfe not found in db
2019-06-05 22:53:00.327 I cache size: 7744 kB
2019-06-05 22:53:00.328 E Verification failure at step 1
2019-06-05 22:53:00.328 I Aggregate range proof verified failed
2019-06-05 22:53:00.328 I One transaction among this group has bad semantics, verifying 
one at a time
2019-06-05 22:53:00.328 I WRONG TRANSACTION BLOB, Failed to check tx <1d1b6b75ee71061507
03ca5dd8f2298d6e3fe97e9f719eba42b05f3129835bfe> semantic, rejected
2019-06-05 22:53:00.328 W [on_send_raw_tx]: tx verification failed

Btw, I assume the small block reward has nothing to do with this right?

If I try to send a large amount, like 40, comparing to a small one, like 5, a different error: ``` 2019-06-05 22:53:00.162 E Insane bulletproof L size 2019-06-05 22:53:00.162 I transaction with hash 1d1b6b75ee7106150703ca5dd8f2298d6e3fe97e9f719eba42b05f3129835bfe not found in db 2019-06-05 22:53:00.327 I cache size: 7744 kB 2019-06-05 22:53:00.328 E Verification failure at step 1 2019-06-05 22:53:00.328 I Aggregate range proof verified failed 2019-06-05 22:53:00.328 I One transaction among this group has bad semantics, verifying one at a time 2019-06-05 22:53:00.328 I WRONG TRANSACTION BLOB, Failed to check tx <1d1b6b75ee71061507 03ca5dd8f2298d6e3fe97e9f719eba42b05f3129835bfe> semantic, rejected 2019-06-05 22:53:00.328 W [on_send_raw_tx]: tx verification failed ``` Btw, I assume the small block reward has nothing to do with this right?
wowario commented 5 years ago (Migrated from github.com)
Owner

It could be this a3c020b4ee/src/ringct/rctSigs.cpp (L1235)
From v14, RCTTypeBulletproof2 is used, so this condition would give the "Aggregate range proof verified failed" error. Looks like a3c020b4ee needs to be refactored to support new RingCT format.

It could be this https://github.com/wownero/wownero/blob/a3c020b4eeb73616dea1507021d9f634d8c73fcb/src/ringct/rctSigs.cpp#L1235 From v14, `RCTTypeBulletproof2` is used, so this condition would give the "Aggregate range proof verified failed" error. Looks like https://github.com/wownero/wownero/commit/a3c020b4eeb73616dea1507021d9f634d8c73fcb needs to be refactored to support new RingCT format.
fuwa0529 commented 5 years ago (Migrated from github.com)
Owner

Yes, I think I found a fix that make it work, preparing PR.

Yes, I think I found a fix that make it work, preparing PR.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: wownero/wownero#206
Loading…
There is no content yet.