particl / particl-core

Particl Core integration/staging tree

Home Page:https://particl.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"absurdly-high-fee" when sending tx

cipig opened this issue · comments

commented

When trying to send a transaction with txfee 100000 or 200000 satoshis the error "absurdly-high-fee" is shown. I used the wallet from 0.16 branch.

This is the hex of the tx with 100000 satoshis txfee:
particl-cli decoderawtransaction 010000000378fac886a0a1aa07c03172940f36e1284780cae1ac547d849a190cf0ff30ce58010000006a4730440220487fae23d2fb87c4bd77bb42f1f4c7e7f1466004510bf2ad1046e1fbe8695a3302207bd11b39af2d33a697253cd78b8bb5462028a4560dc21ee916c6ac781ac682f201210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ffffffff8772c35515a36f6fcc45420f467a8449956746ee31a80a93231f31003ddd15dc000000006a47304402201766e1d04811fa6e6897689ce0b069075954f81463087dfcfc11fc97a749991e02204159cb1bd79a628aba7dcac144e6724b5867c71409095ead01c2f31f3c7442a001210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ffffffffabcef8b7a3294b3e8b9b0e05d056526abed11caf812df5fba54ac22e56f37e2d010000006b4830450221008e12cc067511dfc360027ec0a6361d53a4e72877c67e36336c397a650bf0a4ba02205c23d605d8edac52b7cb6f9279584077311f70aa5e9a43e7246af3ea10c8c7a201210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ffffffff01e0a8a404000000001976a914ed56f2feb905938b45d2e009ec14add0e7d0157288ac00000000

This transaction isn't in the right format for the Particl chain.
The transaction version should be 0xa0 for Particl.
To Particl nodes the vout will look empty and it will appear all the input goes to the fee.

How are you trying to send this transaction?
I would expect it to show the "bad-txn-version" error before it gets to "absurdly-high-fee".

commented

I removed the "bad-txn-version" check, since it was always showing up, indifferent which version i passed, 1 or 160.

I tried again with version 160 and also 0xa0 and now i get "TX decode failed".

Here is such a tx:
{"rawtx":"a0000000c7a5bc5a0378fac886a0a1aa07c03172940f36e1284780cae1ac547d849a190cf0ff30ce580100000000ffffffff8772c35515a36f6fcc45420f467a8449956746ee31a80a93231f31003ddd15dc0000000000ffffffffabcef8b7a3294b3e8b9b0e05d056526abed11caf812df5fba54ac22e56f37e2d0100000000ffffffff014022a304000000001976a914ed56f2feb905938b45d2e009ec14add0e7d0157288ac00000000","hex":"a0000000c7a5bc5a0378fac886a0a1aa07c03172940f36e1284780cae1ac547d849a190cf0ff30ce58010000006a4730440220773aa5ad9922b9fc3978c52119ecadd1fcb34f67f41419337783999981f14640022054c7a357261086fadce1bc1ab4fc3949dfb785cbf0a68319ba7a5a37b1b3dfcd01210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ffffffff8772c35515a36f6fcc45420f467a8449956746ee31a80a93231f31003ddd15dc000000006a47304402203c15698eaa2056665715e9fc3922a24f7dd12f1c47d90e7b7f1fbc7bfa1d386e02205e551bb86e037ab2ff241e89735761ada9d7e005a1bb2f3460f858ae268d99d401210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ffffffffabcef8b7a3294b3e8b9b0e05d056526abed11caf812df5fba54ac22e56f37e2d010000006a47304402200bb04d45e131ad047da2b61171c2ac6f65c5e1bc3607e3a053e86db988aa3451022013b9bd554b99a74f7b6200e78c4160869808f711c037e5d7cc3c94205caa4bf001210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ffffffff014022a304000000001976a914ed56f2feb905938b45d2e009ec14add0e7d0157288ac00000000","tx":{"version":160,"locktime":0,"timestamp":1522312647,"vin":[{"txid":"58ce30fff00c199a847d54ace1ca804728e1360f947231c007aaa1a086c8fa78","vout":1,"scriptPubKey":{"hex":"76a9141462c3dd3f936d595c9af55978003b27c250441f88ac"}}, {"txid":"dc15dd3d00311f23930aa831ee46679549847a460f4245cc6f6fa31555c37287","vout":0,"scriptPubKey":{"hex":"76a9141462c3dd3f936d595c9af55978003b27c250441f88ac"}}, {"txid":"2d7ef3562ec24aa5fbf52d81af1cd1be6a5256d0050e9b8b3e4b29a3b7f8ceab","vout":1,"scriptPubKey":{"hex":"76a9141462c3dd3f936d595c9af55978003b27c250441f88ac"}}],"vout":[{"satoshis":"77800000","scriptPubKey":{"hex":"76a914ed56f2feb905938b45d2e009ec14add0e7d0157288ac"}}]},"txid":"603ccb0fd111dcaadbd4d2524548575901c796c7f99ffe306fc26e055329a1d8","complete":true}

Think i tried pretty all possible combinations of tx-versions and everything that came to ma mind.

It's not just the version. The serialised format of the transaction is different in Particl, to better integrate blinded and ringct outputs and native segregated witness.
particl-tx can convert the transaction version along with the outputs but not the signatures.
You could sign the converted tx with signrawtransaction if the script is standard else you could try createsignaturewithwallet, for an example see test/functional/rpc_part_atomicswap.py

commented

Ok, will have to pass this to our dev, i am only the admin/tester. Sounds like there are changes needed to the code.

commented

barterDEX is creating and signing all the transactions itself, without knowing all the changes in the serialization format, it seems it is not possible to create proper rawtx.

we are only using transparent transactions, but still it seems the serialization is changed.

commented

I removed the "bad-txn-version" check, since it was always showing up, indifferent which version i passed, 1 or 160.

I tried again with version 160 and also 0xa0 and now i get "TX decode failed".

Here is such a tx:
{"rawtx":"a0000000c7a5bc5a0378fac886a0a1aa07c03172940f36e1284780cae1ac547d849a190cf0ff30ce580100000000ffffffff8772c35515a36f6fcc45420f467a8449956746ee31a80a93231f31003ddd15dc0000000000ffffffffabcef8b7a3294b3e8b9b0e05d056526abed11caf812df5fba54ac22e56f37e2d0100000000ffffffff014022a304000000001976a914ed56f2feb905938b45d2e009ec14add0e7d0157288ac00000000","hex":"a0000000c7a5bc5a0378fac886a0a1aa07c03172940f36e1284780cae1ac547d849a190cf0ff30ce58010000006a4730440220773aa5ad9922b9fc3978c52119ecadd1fcb34f67f41419337783999981f14640022054c7a357261086fadce1bc1ab4fc3949dfb785cbf0a68319ba7a5a37b1b3dfcd01210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ffffffff8772c35515a36f6fcc45420f467a8449956746ee31a80a93231f31003ddd15dc000000006a47304402203c15698eaa2056665715e9fc3922a24f7dd12f1c47d90e7b7f1fbc7bfa1d386e02205e551bb86e037ab2ff241e89735761ada9d7e005a1bb2f3460f858ae268d99d401210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ffffffffabcef8b7a3294b3e8b9b0e05d056526abed11caf812df5fba54ac22e56f37e2d010000006a47304402200bb04d45e131ad047da2b61171c2ac6f65c5e1bc3607e3a053e86db988aa3451022013b9bd554b99a74f7b6200e78c4160869808f711c037e5d7cc3c94205caa4bf001210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ffffffff014022a304000000001976a914ed56f2feb905938b45d2e009ec14add0e7d0157288ac00000000","tx":{"version":160,"locktime":0,"timestamp":1522312647,"vin":[{"txid":"58ce30fff00c199a847d54ace1ca804728e1360f947231c007aaa1a086c8fa78","vout":1,"scriptPubKey":{"hex":"76a9141462c3dd3f936d595c9af55978003b27c250441f88ac"}}, {"txid":"dc15dd3d00311f23930aa831ee46679549847a460f4245cc6f6fa31555c37287","vout":0,"scriptPubKey":{"hex":"76a9141462c3dd3f936d595c9af55978003b27c250441f88ac"}}, {"txid":"2d7ef3562ec24aa5fbf52d81af1cd1be6a5256d0050e9b8b3e4b29a3b7f8ceab","vout":1,"scriptPubKey":{"hex":"76a9141462c3dd3f936d595c9af55978003b27c250441f88ac"}}],"vout":[{"satoshis":"77800000","scriptPubKey":{"hex":"76a914ed56f2feb905938b45d2e009ec14add0e7d0157288ac"}}]},"txid":"603ccb0fd111dcaadbd4d2524548575901c796c7f99ffe306fc26e055329a1d8","complete":true}

Think i tried pretty all possible combinations of tx-versions and everything that came to ma mind.

I am undergoing same problem, first got the version error and now this (when i use 160 version number): "TX decode failed". Can you please tell me how you have fixed this problem?? thanks in advance for the help