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

Duplicate coinbase transactions reported in wallet #1956

Closed
et4te opened this issue Nov 11, 2018 · 1 comment
Closed

Duplicate coinbase transactions reported in wallet #1956

et4te opened this issue Nov 11, 2018 · 1 comment
Labels

Comments

@et4te
Copy link

et4te commented Nov 11, 2018

Using the latest master, running grin wallet txs after mining for a while shows two transactions created at exactly the same time.

---------------------------------------------------------------------------------------------------------------------------------------------------------
 Id  Type        Shared Transaction Id  Creation Time        Confirmed?  Confirmation Time    Num.    Num.     Amount    Amount   Fee   Net         Tx  
                                                                                              Inputs  Outputs  Credited  Debited        Difference  Data 
=========================================================================================================================================================
 0   Confirmed   None                   2018-11-10 20:48:19  true        2018-11-10 20:48:19  0       1        60.0      0.0      None  60.0        None 
     Coinbase                                                                                                                                        
---------------------------------------------------------------------------------------------------------------------------------------------------------
 1   Confirmed   None                   2018-11-10 23:44:16  true        2018-11-10 23:44:16  0       1        60.0      0.0      None  60.0        None 
     Coinbase                                                                                                                                        
---------------------------------------------------------------------------------------------------------------------------------------------------------
 2   Confirmed   None                   2018-11-10 23:44:16  true        2018-11-10 23:44:16  0       1        60.0      0.0      None  60.0        None 
     Coinbase               

Here is the server log at 23:44 when the duplicate tx was reportedly recorded.

20181110 23:44:05.134 DEBUG grin_servers::mining::mine_block - get_coinbase: BlockFees { fees: 0, height: 33948, key_id: Some(Identifier(0300000000000000000000000200000000)) }
20181110 23:44:05.136 DEBUG grin_servers::mining::mine_block - Built new block with 0 inputs and 1 outputs, network difficulty: 25823, cumulative difficulty 1919254176
20181110 23:44:05.137 DEBUG grin_servers::mining::stratumserver - (Server ID: StratumServer) sending block 33948 with id 10 to stratum clients
20181110 23:44:10.579 DEBUG grin_servers::grin::seed - monitor_peers: on 0.0.0.0:13414, 10 connected (9 most_work). all 247 = 12 healthy + 0 banned + 235 defunct
20181110 23:44:20.117 DEBUG grin_servers::mining::mine_block - get_coinbase: BlockFees { fees: 0, height: 33948, key_id: Some(Identifier(0300000000000000000000000200000000)) }
20181110 23:44:20.119 DEBUG grin_servers::mining::mine_block - Built new block with 0 inputs and 1 outputs, network difficulty: 25823, cumulative difficulty 1919254176
20181110 23:44:20.119 DEBUG grin_servers::mining::stratumserver - (Server ID: StratumServer) sending block 33948 with id 11 to stratum clients
20181110 23:44:30.581 DEBUG grin_servers::grin::seed - monitor_peers: on 0.0.0.0:13414, 10 connected (9 most_work). all 247 = 12 healthy + 0 banned + 235 defunct
20181110 23:44:35.205 DEBUG grin_servers::mining::mine_block - get_coinbase: BlockFees { fees: 0, height: 33948, key_id: Some(Identifier(0300000000000000000000000200000000)) }
20181110 23:44:35.206 DEBUG grin_servers::mining::mine_block - Built new block with 0 inputs and 1 outputs, network difficulty: 25823, cumulative difficulty 1919254176
20181110 23:44:35.206 DEBUG grin_servers::mining::stratumserver - (Server ID: StratumServer) sending block 33948 with id 12 to stratum clients
20181110 23:44:50.185 DEBUG grin_servers::mining::mine_block - get_coinbase: BlockFees { fees: 0, height: 33948, key_id: Some(Identifier(0300000000000000000000000200000000)) }
20181110 23:44:50.188 DEBUG grin_servers::mining::mine_block - Built new block with 0 inputs and 1 outputs, network difficulty: 25823, cumulative difficulty 1919254176
20181110 23:44:50.188 DEBUG grin_servers::mining::stratumserver - (Server ID: StratumServer) sending block 33948 with id 13 to stratum clients
20181110 23:44:50.585 DEBUG grin_servers::grin::seed - monitor_peers: on 0.0.0.0:13414, 10 connected (9 most_work). all 247 = 12 healthy + 0 banned + 235 defunct
20181110 23:44:52.809 DEBUG grin_p2p::protocol - handle_payload: received tx kernel: 1706176f, msg_len: 32
20181110 23:44:52.809 DEBUG grin_p2p::peer - Requesting tx (kernel hash) 1706176f from peer 94.130.64.25:13414.
20181110 23:44:52.830 DEBUG grin_p2p::protocol - handle_payload: received tx kernel: 1706176f, msg_len: 32
20181110 23:44:52.830 DEBUG grin_p2p::peer - Requesting tx (kernel hash) 1706176f from peer 54.38.70.127:13414.
20181110 23:44:52.842 DEBUG grin_p2p::protocol - handle_payload: received tx kernel: 1706176f, msg_len: 32
20181110 23:44:52.842 DEBUG grin_p2p::peer - Requesting tx (kernel hash) 1706176f from peer 167.99.87.54:13414.
20181110 23:44:52.855 DEBUG grin_p2p::protocol - handle_payload: received tx kernel: 1706176f, msg_len: 32
20181110 23:44:52.855 DEBUG grin_p2p::peer - Requesting tx (kernel hash) 1706176f from peer 109.74.202.16:13414.
20181110 23:44:52.858 DEBUG grin_p2p::protocol - handle_payload: received tx kernel: 1706176f, msg_len: 32
20181110 23:44:52.859 DEBUG grin_p2p::peer - Requesting tx (kernel hash) 1706176f from peer 89.101.91.246:13414.
20181110 23:44:52.863 DEBUG grin_p2p::protocol - handle_payload: received tx: msg_len: 1638
20181110 23:44:52.864 DEBUG grin_servers::common::adapters - Received tx c0565497, inputs: 1, outputs: 2, kernels: 1, going to process.
20181110 23:44:52.877 DEBUG grin_pool::pool - add_to_pool [txpool]: c0565497 (p2p), in/out/kern: 1/2/1, pool: 0 (at block 0556b9d2)
20181110 23:44:52.878 DEBUG grin_p2p::protocol - handle_payload: received tx: msg_len: 1638
20181110 23:44:52.878 DEBUG grin_servers::common::adapters - Received tx c0565497, inputs: 1, outputs: 2, kernels: 1, going to process.
20181110 23:44:52.878 DEBUG grin_p2p::peer - Send full tx c0565497 to 204.48.26.36:13414
20181110 23:44:52.879 DEBUG grin_p2p::peer - Not sending tx c0565497 to 89.101.91.246:13414 (already seen)
20181110 23:44:52.879 DEBUG grin_p2p::peer - Send full tx c0565497 to 128.1.49.43:13414
20181110 23:44:52.879 DEBUG grin_p2p::peer - Not sending tx c0565497 to 109.74.202.16:13414 (already seen)
20181110 23:44:52.879 DEBUG grin_p2p::peer - Not sending tx c0565497 to 167.99.87.54:13414 (already seen)
20181110 23:44:52.879 DEBUG grin_p2p::peer - Send full tx c0565497 to 81.30.158.213:13414
20181110 23:44:52.879 DEBUG grin_p2p::peer - Send full tx c0565497 to 198.245.50.26:13414
20181110 23:44:52.879 DEBUG grin_p2p::peer - Not sending tx c0565497 to 54.38.70.127:13414 (already seen)
20181110 23:44:52.879 DEBUG grin_p2p::peer - Not sending tx c0565497 to 94.130.64.25:13414 (already seen)
20181110 23:44:52.879 DEBUG grin_p2p::peer - Send full tx c0565497 to 80.211.155.34:13414
20181110 23:44:52.879 DEBUG grin_p2p::peers - broadcast_transaction: c0565497 to 5 peers, done.
20181110 23:44:52.879 DEBUG grin_pool::transaction_pool - added tx to reorg_cache: size now 87
20181110 23:44:52.879 DEBUG grin_servers::common::adapters - Transaction c0565497 rejected: DuplicateTx
20181110 23:44:52.894 DEBUG grin_p2p::protocol - handle_payload: received tx kernel: 1706176f, msg_len: 32
20181110 23:44:52.900 DEBUG grin_p2p::protocol - handle_payload: received tx: msg_len: 1638
20181110 23:44:52.900 DEBUG grin_servers::common::adapters - Received tx c0565497, inputs: 1, outputs: 2, kernels: 1, going to process.
20181110 23:44:52.900 DEBUG grin_servers::common::adapters - Transaction c0565497 rejected: DuplicateTx
20181110 23:44:52.909 DEBUG grin_p2p::protocol - handle_payload: received tx kernel: 1706176f, msg_len: 32
20181110 23:44:52.914 DEBUG grin_p2p::protocol - handle_payload: received tx: msg_len: 1638
20181110 23:44:52.914 DEBUG grin_servers::common::adapters - Received tx c0565497, inputs: 1, outputs: 2, kernels: 1, going to process.
20181110 23:44:52.914 DEBUG grin_servers::common::adapters - Transaction c0565497 rejected: DuplicateTx
20181110 23:44:52.937 DEBUG grin_p2p::protocol - handle_payload: received tx kernel: 1706176f, msg_len: 32
20181110 23:44:52.940 DEBUG grin_p2p::protocol - handle_payload: received tx: msg_len: 1638
20181110 23:44:52.941 DEBUG grin_servers::common::adapters - Received tx c0565497, inputs: 1, outputs: 2, kernels: 1, going to process.
20181110 23:44:52.941 DEBUG grin_servers::common::adapters - Transaction c0565497 rejected: DuplicateTx
20181110 23:44:53.035 DEBUG grin_p2p::protocol - handle_payload: received tx kernel: 1706176f, msg_len: 32
@lehnberg lehnberg added the bug label Nov 13, 2018
@yeastplume
Copy link
Member

please reopen if you see this on mainnet

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

3 participants