p2p_invalid_block occasionally fails "bad-txns-inputs-duplicate" #14661

issue MarcoFalke opened this issue on November 5, 2018
  1. MarcoFalke commented at 4:15 PM on November 5, 2018: member

    Short log:

    p2p_invalid_block.py failed, Duration: 1 s
    stdout:
    2018-11-05T15:27:36.459000Z TestFramework (INFO): Initializing test directory /tmp/test_runner_₿_🏃_20181105_152228/p2p_invalid_block_46
    2018-11-05T15:27:36.778000Z TestFramework (INFO): Create a new block with an anyone-can-spend coinbase
    2018-11-05T15:27:36.890000Z TestFramework (INFO): Mature the block.
    2018-11-05T15:27:37.238000Z TestFramework (INFO): Test merkle root malleability.
    2018-11-05T15:27:37.301000Z TestFramework (INFO): Test duplicate input block.
    2018-11-05T15:27:37.354000Z TestFramework (ERROR): Assertion failed
    Traceback (most recent call last):
      File "/home/travis/build/bitcoin/bitcoin/build/bitcoin-x86_64-unknown-linux-gnu/test/functional/test_framework/test_framework.py", line 171, in main
        self.run_test()
      File "/home/travis/build/bitcoin/bitcoin/build/bitcoin-x86_64-unknown-linux-gnu/test/functional/p2p_invalid_block.py", line 92, in run_test
        node.p2p.send_blocks_and_test([block2_orig], node, success=False, request_block=False, reject_reason='bad-txns-inputs-duplicate')
      File "/home/travis/build/bitcoin/bitcoin/build/bitcoin-x86_64-unknown-linux-gnu/test/functional/test_framework/mininode.py", line 543, in send_blocks_and_test
        assert node.getbestblockhash() != blocks[-1].hash
      File "/usr/lib/python3.5/contextlib.py", line 66, in __exit__
        next(self.gen)
      File "/home/travis/build/bitcoin/bitcoin/build/bitcoin-x86_64-unknown-linux-gnu/test/functional/test_framework/test_node.py", line 272, in assert_debug_log
        self._raise_assertion_error('Expected message "{}" does not partially match log:\n\n{}\n\n'.format(expected_msg, print_log))
      File "/home/travis/build/bitcoin/bitcoin/build/bitcoin-x86_64-unknown-linux-gnu/test/functional/test_framework/test_node.py", line 124, in _raise_assertion_error
        raise AssertionError(self._node_msg(msg))
    AssertionError: [node 0] Expected message "bad-txns-inputs-duplicate" does not partially match log:
     - 2018-11-05T15:27:37.312967Z received: headers (82 bytes) peer=0
     - 2018-11-05T15:27:37.313141Z Requesting block 0b1e6087126df7c86349cec8019ee7134f485c79ad89e9ed180325c5b73cd878 from  peer=0
     - 2018-11-05T15:27:37.313156Z sending getdata (37 bytes) peer=0
     - 2018-11-05T15:27:37.316649Z received: ping (8 bytes) peer=0
     - 2018-11-05T15:27:37.316675Z sending pong (8 bytes) peer=0
     - 2018-11-05T15:27:37.318279Z received: block (327 bytes) peer=0
     - 2018-11-05T15:27:37.318321Z received block 0b4699cec0641f2d47013551446930cf165dfbcde6ff4440695e0678dd417068 peer=0
     - 2018-11-05T15:27:37.318358Z Misbehaving: 127.0.0.1:51816 peer=0 (3100 -> 3200)
     - 2018-11-05T15:27:37.318372Z ERROR: ProcessNewBlock: AcceptBlock FAILED (bad-txns-duplicate, duplicate transaction (code 16))
     - 2018-11-05T15:27:37.353006Z Received a POST request for / from 127.0.0.1:34964
     - 2018-11-05T15:27:37.353084Z ThreadRPCServer method=getbestblockhash user=__cookie__
    

    Full log: https://travis-ci.org/bitcoin/bitcoin/jobs/450901528

  2. MarcoFalke added the label Tests on Nov 5, 2018
  3. MarcoFalke added this to the milestone 0.17.1 on Nov 9, 2018
  4. MarcoFalke closed this on Nov 13, 2018

  5. MarcoFalke referenced this in commit 5d605b2745 on Nov 13, 2018
  6. knst referenced this in commit d2cf77542d on Aug 10, 2021
  7. knst referenced this in commit f0b99c3a87 on Aug 10, 2021
  8. knst referenced this in commit abd05eb8d8 on Aug 16, 2021
  9. PastaPastaPasta referenced this in commit 5bda9afcf6 on Aug 23, 2021
  10. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me