mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
code review
Signed-off-by: Pasta <Pasta@dash.org>
This commit is contained in:
parent
720f13d694
commit
9cef545aca
0
qa/rpc-tests/__init__.py
Normal file
0
qa/rpc-tests/__init__.py
Normal file
@ -101,7 +101,7 @@ class NULLDUMMYTest(BitcoinTestFramework):
|
||||
|
||||
|
||||
def block_submit(self, node, txs, accept = False):
|
||||
dip4_activated = self.lastblockheight + 1 >= 432
|
||||
dip4_activated = self.lastblockheight + 1 >= 432
|
||||
block = create_block(self.tip, create_coinbase(self.lastblockheight + 1, dip4_activated=dip4_activated), self.lastblocktime + 1)
|
||||
block.nVersion = 4
|
||||
for tx in txs:
|
||||
|
@ -110,8 +110,8 @@ class PrioritiseTransactionTest(BitcoinTestFramework):
|
||||
tx_id = self.nodes[0].decoderawtransaction(tx_hex)["txid"]
|
||||
|
||||
# This will raise an exception due to min relay fee not being met
|
||||
assert_raises_jsonrpc(-26, "66: insufficient priority", self.nodes[0].sendrawtransaction, tx2_hex)
|
||||
assert(tx2_id not in self.nodes[0].getrawmempool())
|
||||
assert_raises_jsonrpc(-26, "66: min relay fee not met", self.nodes[0].sendrawtransaction, tx2_hex)
|
||||
assert(tx_id not in self.nodes[0].getrawmempool())
|
||||
|
||||
# This is a less than 1000-byte transaction, so just set the fee
|
||||
# to be the minimum for a 1000 byte transaction and check that it is
|
||||
|
Loading…
Reference in New Issue
Block a user