diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-01-07 16:47:35 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-01-12 18:43:43 +0100 |
commit | fa0aa87071eaec8a5df17774cdb352195e5e09de (patch) | |
tree | 454ced6a44964dcddf0351b8558d5a676d629e11 /test/functional/feature_dersig.py | |
parent | 6af013792f1bf85824803fc5283bf0d68a8fd080 (diff) | |
download | bitcoin-fa0aa87071eaec8a5df17774cdb352195e5e09de.tar.xz |
rpc: Return wtxid from testmempoolaccept
Diffstat (limited to 'test/functional/feature_dersig.py')
-rwxr-xr-x | test/functional/feature_dersig.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/functional/feature_dersig.py b/test/functional/feature_dersig.py index 3f7efdbded..3b430139b1 100755 --- a/test/functional/feature_dersig.py +++ b/test/functional/feature_dersig.py @@ -112,8 +112,13 @@ class BIP66Test(BitcoinTestFramework): # First we show that this tx is valid except for DERSIG by getting it # rejected from the mempool for exactly that reason. assert_equal( - [{'txid': spendtx.hash, 'allowed': False, 'reject-reason': 'non-mandatory-script-verify-flag (Non-canonical DER signature)'}], - self.nodes[0].testmempoolaccept(rawtxs=[spendtx.serialize().hex()], maxfeerate=0) + [{ + 'txid': spendtx.hash, + 'wtxid': spendtx.getwtxid(), + 'allowed': False, + 'reject-reason': 'non-mandatory-script-verify-flag (Non-canonical DER signature)', + }], + self.nodes[0].testmempoolaccept(rawtxs=[spendtx.serialize().hex()], maxfeerate=0), ) # Now we verify that a block with this transaction is also invalid. |