mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Merge 40fed336b2 into merged_master (Bitcoin PR bitcoin/bitcoin#22510)
This commit is contained in:
commit
4859871d82
1 changed files with 9 additions and 0 deletions
|
|
@ -501,6 +501,15 @@ class RawTransactionsTest(BitcoinTestFramework):
|
|||
assert_equal(testres['allowed'], True)
|
||||
self.nodes[2].sendrawtransaction(hexstring=rawTxSigned['hex'], maxfeerate='0.20000000')
|
||||
|
||||
self.log.info('sendrawtransaction/testmempoolaccept with tx that is already in the chain')
|
||||
self.nodes[2].generate(1)
|
||||
self.sync_blocks()
|
||||
for node in self.nodes:
|
||||
testres = node.testmempoolaccept([rawTxSigned['hex']])[0]
|
||||
assert_equal(testres['allowed'], False)
|
||||
assert_equal(testres['reject-reason'], 'txn-already-known')
|
||||
assert_raises_rpc_error(-27, 'Transaction already in block chain', node.sendrawtransaction, rawTxSigned['hex'])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
RawTransactionsTest().main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue