@@ -66,14 +66,14 @@ def run_test(self):
66
66
assert_equal (len (self .nodes [0 ].getrawmempool (True )), MAX_ANCESTORS + 1 )
67
67
68
68
# Adding one more transaction on to the chain should fail.
69
- assert_raises_rpc_error (- 26 , "too-long-mempool-chain" , self .chain_transaction , self .nodes [0 ], [txid ], [0 ], value , fee , 1 )
69
+ assert_raises_rpc_error (- 26 , "too-long-mempool-chain, too many unconfirmed ancestors [limit: 25] " , self .chain_transaction , self .nodes [0 ], [txid ], [0 ], value , fee , 1 )
70
70
# ...even if it chains on from some point in the middle of the chain.
71
- assert_raises_rpc_error (- 26 , "too-long-mempool-chain" , self .chain_transaction , self .nodes [0 ], [chain [2 ][0 ]], [1 ], chain [2 ][1 ], fee , 1 )
72
- assert_raises_rpc_error (- 26 , "too-long-mempool-chain" , self .chain_transaction , self .nodes [0 ], [chain [1 ][0 ]], [1 ], chain [1 ][1 ], fee , 1 )
71
+ assert_raises_rpc_error (- 26 , "too-long-mempool-chain, too many descendants " , self .chain_transaction , self .nodes [0 ], [chain [2 ][0 ]], [1 ], chain [2 ][1 ], fee , 1 )
72
+ assert_raises_rpc_error (- 26 , "too-long-mempool-chain, too many descendants " , self .chain_transaction , self .nodes [0 ], [chain [1 ][0 ]], [1 ], chain [1 ][1 ], fee , 1 )
73
73
# ...even if it chains on to two parent transactions with one in the chain.
74
- assert_raises_rpc_error (- 26 , "too-long-mempool-chain" , self .chain_transaction , self .nodes [0 ], [chain [0 ][0 ], second_chain ], [1 , 0 ], chain [0 ][1 ] + second_chain_value , fee , 1 )
74
+ assert_raises_rpc_error (- 26 , "too-long-mempool-chain, too many descendants " , self .chain_transaction , self .nodes [0 ], [chain [0 ][0 ], second_chain ], [1 , 0 ], chain [0 ][1 ] + second_chain_value , fee , 1 )
75
75
# ...especially if its > 40k weight
76
- assert_raises_rpc_error (- 26 , "too-long-mempool-chain" , self .chain_transaction , self .nodes [0 ], [chain [0 ][0 ]], [1 ], chain [0 ][1 ], fee , 350 )
76
+ assert_raises_rpc_error (- 26 , "too-long-mempool-chain, too many descendants " , self .chain_transaction , self .nodes [0 ], [chain [0 ][0 ]], [1 ], chain [0 ][1 ], fee , 350 )
77
77
# But not if it chains directly off the first transaction
78
78
self .chain_transaction (self .nodes [0 ], [chain [0 ][0 ]], [1 ], chain [0 ][1 ], fee , 1 )
79
79
# and the second chain should work just fine
0 commit comments