Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grin Post Tx: Wrong Response Code #2171

Closed
quentinlesceller opened this issue Dec 17, 2018 · 1 comment
Closed

Grin Post Tx: Wrong Response Code #2171

quentinlesceller opened this issue Dec 17, 2018 · 1 comment
Labels

Comments

@quentinlesceller
Copy link
Member

post_tx randomly fails with:

20181217 12:26:38.056 DEBUG grin_wallet::libwallet::internal::updater - receive_coinbase: built candidate output - Identifier(0300000000000000000000047c00000000), 0300000000000000000000047c00000000
20181217 12:26:38.056 DEBUG grin_wallet::libwallet::internal::updater - receive_coinbase: BlockFees { fees: 0, height: 86107, key_id: Some(Identifier(0300000000000000000000047c00000000)) }
20181217 12:26:38.076 DEBUG grin_wallet::libwallet::api - api: post_tx: successfully posted tx: 63ed1a8e, fluff? true
20181217 12:26:38.118 DEBUG grin_wallet::types - Using wallet seed file at: /opt/grin/wallet_data/wallet.seed
20181217 12:26:38.143 DEBUG grin_wallet::libwallet::internal::updater - receive_coinbase: built candidate output - Identifier(0300000000000000000000047b00000000), 0300000000000000000000047b00000000
20181217 12:26:38.143 DEBUG grin_wallet::libwallet::internal::updater - receive_coinbase: BlockFees { fees: 0, height: 86107, key_id: Some(Identifier(0300000000000000000000047b00000000)) }
20181217 12:26:38.550 ERROR grin_wallet::libwallet::api - api: post_tx: failed with error: Client Callback Error: Posting transaction to node
20181217 12:26:38.550 ERROR grin_wallet::controller - post_tx: failed with error: Client Callback Error: Posting transaction to node
20181217 12:26:38.550 ERROR grin_wallet::controller - Request Error: Error { inner: Error { inner:

Request error: Wrong response code }

Client Callback Error: Posting transaction to node }

However, on the Grin node side everything is working well:

20181217 12:26:38.065 INFO grin_api::handlers::pool_api - Pushing transaction 63ed1a8e to pool (inputs: 8, outputs: 2, kernels: 1)
20181217 12:26:38.077 DEBUG grin_pool::pool - add_to_pool [txpool]: 63ed1a8e (push-api) [in/out/kern: 8/2/1] pool: 0 (at block 02153c61)
20181217 12:26:38.078 DEBUG grin_p2p::peer - Send tx kernel hash 2ffbaad0 to 144.76.158.135:13414
20181217 12:26:38.078 DEBUG grin_p2p::peer - Send tx kernel hash 2ffbaad0 to 80.211.155.34:13414
20181217 12:26:38.078 DEBUG grin_p2p::peer - Send tx kernel hash 2ffbaad0 to 174.109.234.150:10000
20181217 12:26:38.078 DEBUG grin_p2p::peer - Send full tx 63ed1a8e to 94.130.229.193:13414
20181217 12:26:38.079 DEBUG grin_p2p::peer - Send full tx 63ed1a8e to 185.80.129.70:13414
20181217 12:26:38.079 DEBUG grin_p2p::peer - Send tx kernel hash 2ffbaad0 to 46.101.201.216:13414
20181217 12:26:38.079 DEBUG grin_p2p::peer - Send tx kernel hash 2ffbaad0 to 95.216.193.239:13414
20181217 12:26:38.079 DEBUG grin_p2p::peer - Send tx kernel hash 2ffbaad0 to 95.216.77.18:13414
20181217 12:26:38.079 DEBUG grin_p2p::peer - Send tx kernel hash 2ffbaad0 to 3.0.138.222:13414
20181217 12:26:38.079 DEBUG grin_p2p::peers - broadcast_transaction: 63ed1a8e to 9 peers, done.
20181217 12:26:38.079 DEBUG grin_pool::transaction_pool - added tx to reorg_cache: size now 98
20181217 12:26:38.115 DEBUG grin_p2p::protocol - handle_payload: GetTransaction: 2ffbaad0, msg_len: 32
20181217 12:26:38.122 DEBUG grin_servers::mining::mine_block - get_coinbase: BlockFees { fees: 0, height: 86107, key_id: Some(Identifier(0300000000000000000000047c00000000)) }
20181217 12:26:38.123 DEBUG grin_servers::mining::mine_block - Built new block with 0 inputs and 1 outputs, network difficulty: 34757, cumulative difficulty 5260186203
20181217 12:26:38.124 DEBUG grin_servers::mining::stratumserver - (Server ID: StratumServer) sending block 86107 with id 2 to stratum clients
20181217 12:26:38.175 DEBUG grin_p2p::protocol - handle_payload: GetTransaction: 2ffbaad0, msg_len: 32
20181217 12:26:38.179 DEBUG grin_p2p::protocol - handle_payload: GetTransaction: 2ffbaad0, msg_len: 32
20181217 12:26:38.183 DEBUG grin_p2p::protocol - handle_payload: GetTransaction: 2ffbaad0, msg_len: 32
20181217 12:26:38.189 DEBUG grin_p2p::protocol - handle_payload: GetTransaction: 2ffbaad0, msg_len: 32
20181217 12:26:38.189 DEBUG grin_p2p::protocol - handle_payload: GetTransaction: 2ffbaad0, msg_len: 32
20181217 12:26:38.324 DEBUG grin_p2p::protocol - handle_payload: GetTransaction: 2ffbaad0, msg_len: 32
20181217 12:26:38.544 INFO grin_api::handlers::pool_api - Pushing transaction a6b54584 to pool (inputs: 8, outputs: 2, kernels: 1)
20181217 12:26:38.553 ERROR grin_api::handlers::pool_api - update_pool: failed with error: InvalidTx(Serialization(DuplicateError))
20181217 12:26:39.556 INFO grin_api::handlers::pool_api - Pushing transaction a6b54584 to pool (inputs: 8, outputs: 2, kernels: 1)
20181217 12:26:39.558 ERROR grin_api::handlers::pool_api - update_pool: failed with error: InvalidTx(Serialization(DuplicateError))
20181217 12:26:40.562 INFO grin_api::handlers::pool_api - Pushing transaction a6b54584 to pool (inputs: 8, outputs: 2, kernels: 1)
20181217 12:26:40.564 ERROR grin_api::handlers::pool_api - update_pool: failed with error: InvalidTx(Serialization(DuplicateError))
20181217 12:26:45.302 DEBUG grin_servers::grin::seed - monitor_peers: on 0.0.0.0:13414, 9 connected (9 most_work). all 1119 = 449 healthy + 0 banned + 670 defunct
20181217 12:26:48.313 DEBUG grin_chain::txhashset::txhashset - Rewind to header 02153c61 at 86106

You even see that I'm trying to repost and we get the logical DuplicateError.

@yeastplume
Copy link
Member

This probably had to do with fixed issues with multiple wallets, same seed. Please reopen if still an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants