Skip to content

Intermittent issue in create_raw_transaction assert_equal(final_psbt["complete"], True) fails #20975

Closed

Description

@maflcko

https://cirrus-ci.com/task/4904241892425728?command=ci#L5098

 test  2021-01-20T23:39:58.801000Z TestFramework (ERROR): Assertion failed 
                                   Traceback (most recent call last):
                                     File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/test_framework.py", line 126, in main
                                       self.run_test()
                                     File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/feature_nulldummy.py", line 94, in run_test
                                       test4tx = create_transaction(self.nodes[0], test2tx.hash, self.address, amount=46)
                                     File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/blocktools.py", line 164, in create_transaction
                                       raw_tx = create_raw_transaction(node, txid, to_address, amount=amount)
                                     File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/blocktools.py", line 180, in create_raw_transaction
                                       assert_equal(final_psbt["complete"], True)
                                     File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/util.py", line 50, in assert_equal
                                       raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
                                   AssertionError: not(False == True)

Activity

  1. maflcko commented on Jan 21, 2021

    @maflcko
    MemberAuthor

    I've seen this for at least two months

  2. hebasto commented on May 29, 2021

    @hebasto
    Member

    The same error in the recent "Linux32" build on https://bitcoinbuilds.org/?job=a67a5e50-f422-436f-b173-54a4765094db:

    ...
    2021-05-29T13:54:49.294000Z TestFramework (INFO): Initializing test directory /tmp/test_runner_₿_🏃_20210529_093535/feature_nulldummy_72
    2021-05-29T13:54:51.887000Z TestFramework (INFO): Test 1: NULLDUMMY compliant base transactions should be accepted to mempool and mined before activation [103]
    2021-05-29T13:54:51.908000Z TestFramework (INFO): Test 2: Non-NULLDUMMY base multisig transaction should not be accepted to mempool before activation
    2021-05-29T13:54:51.914000Z TestFramework (INFO): Test 3: Non-NULLDUMMY base transactions should be accepted in a block before activation [104]
    2021-05-29T13:54:51.917000Z TestFramework (INFO): Test 4: Non-NULLDUMMY base multisig transaction is invalid after activation
    2021-05-29T13:54:51.920000Z TestFramework (ERROR): Assertion failed
    Traceback (most recent call last):
      File "/home/ubuntu/src/test/functional/test_framework/test_framework.py", line 128, in main
        self.run_test()
      File "/home/ubuntu/src/test/functional/feature_nulldummy.py", line 95, in run_test
        test4tx = create_transaction(self.nodes[0], test2tx.hash, self.address, amount=46)
      File "/home/ubuntu/src/test/functional/test_framework/blocktools.py", line 165, in create_transaction
        raw_tx = create_raw_transaction(node, txid, to_address, amount=amount)
      File "/home/ubuntu/src/test/functional/test_framework/blocktools.py", line 181, in create_raw_transaction
        assert_equal(final_psbt["complete"], True)
      File "/home/ubuntu/src/test/functional/test_framework/util.py", line 50, in assert_equal
        raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
    AssertionError: not(False == True)
    2021-05-29T13:54:51.971000Z TestFramework (INFO): Stopping nodes
    ...
    
  3. maflcko commented on Jun 1, 2021

    @maflcko
    MemberAuthor

    @achow101 What info would be useful to debug this? Maybe log the full psbt?

  4. achow101 commented on Jun 1, 2021

    @achow101
    Member

    I think the full psbts and listunspent would help.

  5. added a commit that references this issue on Jun 7, 2021
  6. ryanofsky commented on Jun 18, 2021

    @ryanofsky
    Contributor

    I saw this same issue yesterday: assert_equal(final_psbt["complete"], True) failing in feature_nulldummy.py) causing a spurious failure. Restarting cirrus got around the problem.

    feature_nulldummy.py --descriptors
    
    Checked out 33af67edbd902e9b9c3862c3a3066798cac1a33d on pull/22100 branch.
    
    Traceback (most recent call last):
      File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/test_framework.py", line 128, in main
        self.run_test()
      File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/feature_nulldummy.py", line 100, in run_test
        test4tx = create_transaction(self.nodes[0], test2tx.hash, self.address, amount=46)
      File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/blocktools.py", line 168, in create_transaction
        raw_tx = create_raw_transaction(node, txid, to_address, amount=amount)
      File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/blocktools.py", line 189, in create_raw_transaction
        assert_equal(final_psbt["complete"], True)
    
  7. maflcko commented on Jun 18, 2021

    @maflcko
    MemberAuthor

    Details:

    final_psbt={'psbt': 'cHNidP8BAFUCAAAAAd/Kfn8z41ORLq9mV3hJwLBljJSQTDUpGIiiPIPkfIdcAAAAAAD/////AQBuLhIBAAAAGXapFJsp8LQvoLFcyjgPWwVvhqgzFPcpiKwAAAAAAAEAwwIAAAABhFFT6REX/1w3WFGpdsAujrwcisumMDhLgCLShy+9HhgAAAAAcAFRRzBEAiAox4+9eI5Ga6KJtyxzQO/E8Uvs8GX/mWLe/NQ6SmvOVQIgeYUBZZEAIEIeX869NhsaT7q60V8e2JtF9N4B2i7ga84BJVEhAwkLetXZtuHFLbkEY53GpUhOPBdM5H1qX+YLwj1Zq1YaUa7/////AQBPJBgBAAAAF6kUuqIaInm3bupYERl5x/d+LEVeXOmHAAAAAAEEJVEhAwkLetXZtuHFLbkEY53GpUhOPBdM5H1qX+YLwj1Zq1YaUa4iBgMJC3rV2bbhxS25BGOdxqVITjwXTOR9al/mC8I9WatWGgSbKfC0ACICAwkLetXZtuHFLbkEY53GpUhOPBdM5H1qX+YLwj1Zq1YaGIeAfB8sAACAAQAAgAAAAIAAAAAAAAAAAAA=', 'complete': False} 
    
    default_wallet listunspent=[{'txid': '3af53ae340d4fb08ce2ed0d2e1f25029546cce3a62ca686f4c014a7091ca175f', 'vout': 0, 'address': 'mjTkW3DjgyZck4KbiRusZsqTgaYTxdSz6z', 'scriptPubKey': '76a9142b4569203694fc997e13f2c0a1383b9e16c77a0d88ac', 'amount': Decimal('50.00000000'), 'confirmations': 102, 'spendable': True, 'solvable': True, 'desc': 'pkh([2b456920]0227d85ba011276cf25b51df6a188b75e604b38770a462b2d0e9fb2fc839ef5d3f)#mx6z3m4v', 'safe': True}, {'txid': '2baf157b6b03ebf7b9dde678f0ee99780dd494434b95b6a4d99f68de65f1599d', 'vout': 0, 'address': 'mjTkW3DjgyZck4KbiRusZsqTgaYTxdSz6z', 'scriptPubKey': '76a9142b4569203694fc997e13f2c0a1383b9e16c77a0d88ac', 'amount': Decimal('50.00000000'), 'confirmations': 101, 'spendable': True, 'solvable': True, 'desc': 'pkh([2b456920]0227d85ba011276cf25b51df6a188b75e604b38770a462b2d0e9fb2fc839ef5d3f)#mx6z3m4v', 'safe': True}]
    
    wmulti listunspent=[{'txid': '5d09a3b937d8120dbe336445aa65964a3b49d9801b3b9c6af69412eed6026a2b', 'vout': 0, 'address': '2MsKJGT9e2WJCi12Zea6DmnhpZd5v58uU6K', 'label': '', 'redeemScript': '0020d3c63b927c6f8c7120ee3f99266ffc4ea8b85182b1aab02ef7cc69f813e7bebe', 'witnessScript': '512103090b7ad5d9b6e1c52db904639dc6a5484e3c174ce47d6a5fe60bc23d59ab561a51ae', 'scriptPubKey': 'a91400c53c4e5de32e46bc029b528bd75f8efc4de8c487', 'amount': Decimal('49.00000000'), 'confirmations': 2, 'spendable': True, 'solvable': True, 'desc': 'sh(wsh(multi(1,[9b29f0b4]03090b7ad5d9b6e1c52db904639dc6a5484e3c174ce47d6a5fe60bc23d59ab561a)))#hglknwc6', 'safe': True}, {'txid': '5c877ce4833ca2881829354c90948c65b0c049785766af2e9153e3337f7ecadf', 'vout': 0, 'address': '2NAG3s1pdyHLgfcNCEvxYPoqo9Jt6TB9KGV', 'label': '', 'redeemScript': '512103090b7ad5d9b6e1c52db904639dc6a5484e3c174ce47d6a5fe60bc23d59ab561a51ae', 'scriptPubKey': 'a914baa21a2279b76eea58111979c7f77e2c455e5ce987', 'amount': Decimal('47.00000000'), 'confirmations': 1, 'spendable': True, 'solvable': True, 'desc': 'sh(multi(1,[9b29f0b4]03090b7ad5d9b6e1c52db904639dc6a5484e3c174ce47d6a5fe60bc23d59ab561a))#ld9lxhr8', 'safe': True}] 
    
  8. maflcko commented on Jun 18, 2021

    @maflcko
    MemberAuthor

    Looks like a missing BlockUntilSyncedToCurrentChain in walletprocesspsbt and other methods

  9. added this to the 22.0 milestone on Jun 18, 2021
  10. added 2 commits that reference this issue on Jun 22, 2021
  11. added a commit that references this issue on Sep 28, 2021
  12. locked as resolved and limited conversation to collaborators on Aug 18, 2022
  13. added a commit that references this issue on May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions