message: test: ensure OP_1NEGATE satisfies BIP62 minimal push rule
  with a regression test for PR 13084 and PR 17204.
diff: @@ -198,25 +198,31 @@ class SignRawTransactionsTest(BitcoinTestFramework):
  assert_equal(spending_tx_signed['complete'], True)
  self.nodes[0].sendrawtransaction(spending_tx_signed['hex'])
  - script_pub_key = self.nodes[1].validateaddress(addr)['scriptPubKey']
  - # Fund that address
  - txid = self.nodes[0].sendtoaddress(addr, 10)
  - vout = find_vout_for_address(self.nodes[0], txid, addr)
  - self.nodes[0].generate(1)
  - # Now create and sign a transaction spending that output on node[0], which doesn't know the scripts or keys
  - spending_tx = self.nodes[0].createrawtransaction([{'txid': txid, 'vout': vout}], {self.nodes[1].getnewaddress(): Decimal("9.999")})
  - spending_tx_signed = self.nodes[0].signrawtransactionwithkey(spending_tx, [embedded_privkey], [{'txid': txid, 'vout': vout, 'scriptPubKey': script_pub_key, 'redeemScript': redeem_script, 'witnessScript': witness_script, 'amount': 10}])
  - # Check the signing completed successfully
  - assert 'complete' in spending_tx_signed
  - assert_equal(spending_tx_signed['complete'], True)
  - self.nodes[0].sendrawtransaction(spending_tx_signed['hex'])
  + def OP_1NEGATE_test(self):
  + self.log.info("Test OP_1NEGATE (0x4f) satisfies BIP62 minimal push standardness rule")
  + hex_str = (
  + "0200000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
  + "FFFFFFFF00000000044F024F9CFDFFFFFF01F0B9F5050000000023210277777777"
  + "77777777777777777777777777777777777777777777777777777777AC66030000"
  + )
  + prev_txs = [
  + {
  + "txid": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF",
  + "vout": 0,
  + "scriptPubKey": "A914AE44AB6E9AA0B71F1CD2B453B69340E9BFBAEF6087",
  + "redeemScript": "4F9C",
  + "amount": 1,
  + }
  + ]
  + txn = self.nodes[0].signrawtransactionwithwallet(hex_str, prev_txs)
  + assert txn["complete"]
  def run_test(self):
  self.successful_signing_test()
  self.script_verification_error_test()
  self.witness_script_test()
  + self.OP_1NEGATE_test()
  self.test_with_lock_outputs()
  - self.test_fully_signed_tx()
  if __name__ == '__main__':
  