/dports/net-p2p/bitcoin/bitcoin-22.0/src/test/fuzz/ |
H A D | decode_tx.cpp | 17 const std::string tx_hex = HexStr(buffer); in FUZZ_TARGET() local 19 const bool result_none = DecodeHexTx(mtx, tx_hex, false, false); in FUZZ_TARGET() 20 const bool result_try_witness = DecodeHexTx(mtx, tx_hex, false, true); in FUZZ_TARGET() 21 const bool result_try_witness_and_maybe_no_witness = DecodeHexTx(mtx, tx_hex, true, true); in FUZZ_TARGET() 23 const bool result_try_no_witness = DecodeHexTx(no_witness_mtx, tx_hex, true, false); in FUZZ_TARGET()
|
/dports/net-p2p/bitcoin-daemon/bitcoin-22.0/src/test/fuzz/ |
H A D | decode_tx.cpp | 17 const std::string tx_hex = HexStr(buffer); in initialize_data_stream_addr_man() 19 const bool result_none = DecodeHexTx(mtx, tx_hex, false, false); in initialize_data_stream_addr_man() 20 const bool result_try_witness = DecodeHexTx(mtx, tx_hex, false, true); in initialize_data_stream_addr_man() 21 const bool result_try_witness_and_maybe_no_witness = DecodeHexTx(mtx, tx_hex, true, true); in initialize_data_stream_addr_man() 23 const bool result_try_no_witness = DecodeHexTx(no_witness_mtx, tx_hex, true, false); in initialize_data_stream_addr_man()
|
/dports/net-p2p/bitcoin-utils/bitcoin-22.0/src/test/fuzz/ |
H A D | decode_tx.cpp | 17 const std::string tx_hex = HexStr(buffer); in FUZZ_TARGET() local 19 const bool result_none = DecodeHexTx(mtx, tx_hex, false, false); in FUZZ_TARGET() 20 const bool result_try_witness = DecodeHexTx(mtx, tx_hex, false, true); in FUZZ_TARGET() 21 const bool result_try_witness_and_maybe_no_witness = DecodeHexTx(mtx, tx_hex, true, true); in FUZZ_TARGET() 23 const bool result_try_no_witness = DecodeHexTx(no_witness_mtx, tx_hex, true, false); in FUZZ_TARGET()
|
/dports/net-p2p/namecoin/namecoin-core-nc0.21.0.1/src/test/fuzz/ |
H A D | decode_tx.cpp | 17 const std::string tx_hex = HexStr(buffer); in test_one_input() local 19 const bool result_none = DecodeHexTx(mtx, tx_hex, false, false); in test_one_input() 20 const bool result_try_witness = DecodeHexTx(mtx, tx_hex, false, true); in test_one_input() 21 const bool result_try_witness_and_maybe_no_witness = DecodeHexTx(mtx, tx_hex, true, true); in test_one_input() 23 const bool result_try_no_witness = DecodeHexTx(no_witness_mtx, tx_hex, true, false); in test_one_input()
|
/dports/net-p2p/namecoin-daemon/namecoin-core-nc0.21.0.1/src/test/fuzz/ |
H A D | decode_tx.cpp | 17 const std::string tx_hex = HexStr(buffer); in test_one_input() local 19 const bool result_none = DecodeHexTx(mtx, tx_hex, false, false); in test_one_input() 20 const bool result_try_witness = DecodeHexTx(mtx, tx_hex, false, true); in test_one_input() 21 const bool result_try_witness_and_maybe_no_witness = DecodeHexTx(mtx, tx_hex, true, true); in test_one_input() 23 const bool result_try_no_witness = DecodeHexTx(no_witness_mtx, tx_hex, true, false); in test_one_input()
|
/dports/net-p2p/namecoin-utils/namecoin-core-nc0.21.0.1/src/test/fuzz/ |
H A D | decode_tx.cpp | 17 const std::string tx_hex = HexStr(buffer); in test_one_input() local 19 const bool result_none = DecodeHexTx(mtx, tx_hex, false, false); in test_one_input() 20 const bool result_try_witness = DecodeHexTx(mtx, tx_hex, false, true); in test_one_input() 21 const bool result_try_witness_and_maybe_no_witness = DecodeHexTx(mtx, tx_hex, true, true); in test_one_input() 23 const bool result_try_no_witness = DecodeHexTx(no_witness_mtx, tx_hex, true, false); in test_one_input()
|
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/test/fuzz/ |
H A D | decode_tx.cpp | 17 const std::string tx_hex = HexStr(std::string{buffer.begin(), buffer.end()}); in test_one_input() local 19 const bool result_none = DecodeHexTx(mtx, tx_hex, false, false); in test_one_input() 20 const bool result_try_witness = DecodeHexTx(mtx, tx_hex, false, true); in test_one_input() 21 const bool result_try_witness_and_maybe_no_witness = DecodeHexTx(mtx, tx_hex, true, true); in test_one_input() 22 const bool result_try_no_witness = DecodeHexTx(mtx, tx_hex, true, false); in test_one_input()
|
/dports/finance/py-pycoin/pycoin-0.91.20210515/tests/btc/ |
H A D | segwit_test.py | 44 tx_hex = tx_u_prime.as_hex() 45 self.assertEqual(tx_hex, tx_s_hex) 99 tx_hex = tx_u.as_hex() 100 self.assertEqual(tx_hex, tx_u_hex) 101 tx_hex = tx_s.as_hex() 102 self.assertEqual(tx_hex, tx_s_hex) 104 tx_hex = tx_u_prime.as_hex() 307 tx_hex = tx_u5prime.as_hex() 426 tx_hex = tx.as_hex() 428 print(tx_hex) [all …]
|
H A D | bc_transaction_test.py | 48 tx_hex = tvec[1] 52 tx = network.tx.from_hex(tx_hex) 54 print("Cannot parse tx_hex: %s" % tx_hex) 78 tx_hex = tx.as_hex(include_unspents=True) 100 f.write(tx_hex) 102 … self.fail("fail on %s because of %s with hex %s: %s" % (tx.w_id(), why, tx_hex, comments))
|
/dports/net-p2p/c-lightning/lightning-0.10.2/external/libwally-core/src/ctest/ |
H A D | test_tx.c | 18 static bool tx_roundtrip(const char *tx_hex) in tx_roundtrip() argument 28 ret = wally_tx_from_hex(tx_hex, WALLY_TX_FLAG_USE_WITNESS, &tx); in tx_roundtrip() 32 if (ret != WALLY_OK || strcmp(tx_hex, new_hex)) in tx_roundtrip() 96 static bool tx_coinbase(const char *tx_hex) in tx_coinbase() argument 105 ret = wally_tx_from_hex(tx_hex, flags, &tx); in tx_coinbase() 109 if (ret != WALLY_OK || strcmp(tx_hex, new_hex)) in tx_coinbase()
|
H A D | test_elements_tx.c | 34 static bool tx_roundtrip(const char *tx_hex, const char *sighash_hex) in tx_roundtrip() argument 48 ret = wally_tx_from_hex(tx_hex, flags | WALLY_TX_FLAG_USE_ELEMENTS, &tx); in tx_roundtrip() 52 if (ret != WALLY_OK || strcmp(tx_hex, new_hex)) in tx_roundtrip() 168 static bool tx_coinbase(const char *tx_hex) in tx_coinbase() argument 177 ret = wally_tx_from_hex(tx_hex, flags | WALLY_TX_FLAG_USE_ELEMENTS, &tx); in tx_coinbase() 181 if (ret != WALLY_OK || strcmp(tx_hex, new_hex)) in tx_coinbase() 202 static bool tx_pegin(const char *tx_hex, const char **tx_pegin_wit_hex, size_t num_pegin_wit) in tx_pegin() argument 214 ret = wally_tx_from_hex(tx_hex, flags | WALLY_TX_FLAG_USE_ELEMENTS, &tx); in tx_pegin() 218 if (ret != WALLY_OK || strcmp(tx_hex, new_hex)) in tx_pegin() 280 if (ret != WALLY_OK || strcmp(tx_hex, new_hex)) in tx_pegin()
|
/dports/net-p2p/bitcoin/bitcoin-22.0/test/functional/test_framework/ |
H A D | wallet.py | 138 self.sendrawtransaction(from_node=kwargs['from_node'], tx_hex=tx['hex']) 168 tx_hex = tx.serialize().hex() 170 tx_info = from_node.testmempoolaccept([tx_hex])[0] 175 return {'txid': tx_info['txid'], 'wtxid': tx_info['wtxid'], 'hex': tx_hex, 'tx': tx} 177 def sendrawtransaction(self, *, from_node, tx_hex): argument 178 from_node.sendrawtransaction(tx_hex) 179 self.scan_tx(from_node.decoderawtransaction(tx_hex))
|
/dports/net-p2p/bitcoin-utils/bitcoin-22.0/test/functional/test_framework/ |
H A D | wallet.py | 138 self.sendrawtransaction(from_node=kwargs['from_node'], tx_hex=tx['hex']) 168 tx_hex = tx.serialize().hex() 170 tx_info = from_node.testmempoolaccept([tx_hex])[0] 175 return {'txid': tx_info['txid'], 'wtxid': tx_info['wtxid'], 'hex': tx_hex, 'tx': tx} 177 def sendrawtransaction(self, *, from_node, tx_hex): argument 178 from_node.sendrawtransaction(tx_hex) 179 self.scan_tx(from_node.decoderawtransaction(tx_hex))
|
/dports/net-p2p/bitcoin-daemon/bitcoin-22.0/test/functional/test_framework/ |
H A D | wallet.py | 138 self.sendrawtransaction(from_node=kwargs['from_node'], tx_hex=tx['hex']) 168 tx_hex = tx.serialize().hex() 170 tx_info = from_node.testmempoolaccept([tx_hex])[0] 175 return {'txid': tx_info['txid'], 'wtxid': tx_info['wtxid'], 'hex': tx_hex, 'tx': tx} 177 def sendrawtransaction(self, *, from_node, tx_hex): argument 178 from_node.sendrawtransaction(tx_hex) 179 self.scan_tx(from_node.decoderawtransaction(tx_hex))
|
/dports/net-p2p/bitcoin/bitcoin-22.0/test/functional/ |
H A D | p2p_blocksonly.py | 37 tx, txid, wtxid, tx_hex = self.check_p2p_tx_violation() 43 assert_equal(self.nodes[0].testmempoolaccept([tx_hex])[0]['allowed'], True) 45 self.nodes[0].sendrawtransaction(tx_hex) 58 assert_equal(self.nodes[0].testmempoolaccept([tx_hex])[0]['allowed'], True) 86 _, txid, _, tx_hex = self.check_p2p_tx_violation(index=2) 91 self.nodes[0].sendrawtransaction(tx_hex)
|
H A D | mining_prioritisetransaction.py | 129 tx_hex = self.nodes[0].signrawtransactionwithwallet(raw_tx)["hex"] 130 tx_id = self.nodes[0].decoderawtransaction(tx_hex)["txid"] 133 … assert_raises_rpc_error(-26, "min relay fee not met", self.nodes[0].sendrawtransaction, tx_hex) 142 assert_equal(self.nodes[0].sendrawtransaction(tx_hex), tx_id)
|
/dports/net-p2p/bitcoin-utils/bitcoin-22.0/test/functional/ |
H A D | p2p_blocksonly.py | 37 tx, txid, wtxid, tx_hex = self.check_p2p_tx_violation() 43 assert_equal(self.nodes[0].testmempoolaccept([tx_hex])[0]['allowed'], True) 45 self.nodes[0].sendrawtransaction(tx_hex) 58 assert_equal(self.nodes[0].testmempoolaccept([tx_hex])[0]['allowed'], True) 86 _, txid, _, tx_hex = self.check_p2p_tx_violation(index=2) 91 self.nodes[0].sendrawtransaction(tx_hex)
|
H A D | mining_prioritisetransaction.py | 129 tx_hex = self.nodes[0].signrawtransactionwithwallet(raw_tx)["hex"] 130 tx_id = self.nodes[0].decoderawtransaction(tx_hex)["txid"] 133 … assert_raises_rpc_error(-26, "min relay fee not met", self.nodes[0].sendrawtransaction, tx_hex) 142 assert_equal(self.nodes[0].sendrawtransaction(tx_hex), tx_id)
|
/dports/net-p2p/bitcoin-daemon/bitcoin-22.0/test/functional/ |
H A D | p2p_blocksonly.py | 37 tx, txid, wtxid, tx_hex = self.check_p2p_tx_violation() 43 assert_equal(self.nodes[0].testmempoolaccept([tx_hex])[0]['allowed'], True) 45 self.nodes[0].sendrawtransaction(tx_hex) 58 assert_equal(self.nodes[0].testmempoolaccept([tx_hex])[0]['allowed'], True) 86 _, txid, _, tx_hex = self.check_p2p_tx_violation(index=2) 91 self.nodes[0].sendrawtransaction(tx_hex)
|
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/test/functional/ |
H A D | qtum_null_sender.py | 25 tx_hex = self.node.signrawtransactionwithwallet(bytes_to_hex_str(tx.serialize()))['hex'] 26 parent_tx_id = self.node.sendrawtransaction(tx_hex) 32 tx_hex = bytes_to_hex_str(tx.serialize()) 33 …ssert_raises_rpc_error(-26, 'bad-txns-invalid-sender-script', self.node.sendrawtransaction, tx_hex)
|
H A D | qtum_dgp_block_size_restart.py | 39 tx_hex = self.node.signrawtransactionwithwallet(bytes_to_hex_str(tx.serialize()))['hex'] 40 f = io.BytesIO(hex_str_to_bytes(tx_hex)) 48 …tx_hex = self.node.signrawtransactionwithwallet(bytes_to_hex_str(block.vtx[-1].serialize()))['hex'] 49 f = io.BytesIO(hex_str_to_bytes(tx_hex))
|
/dports/net-p2p/c-lightning/lightning-0.10.2/external/libwally-core/src/test/ |
H A D | test_transaction.py | 42 for tx_hex in [ 46 self.assertEqual(WALLY_OK, wally_tx_from_hex(tx_hex, 0, tx_out)) 55 self.assertEqual(tx_hex, utf8(hex_)) 58 for tx_hex in [ TX_HEX, 63 self.assertEqual(WALLY_OK, wally_tx_from_hex(tx_hex, 0 ,tx_out)) 65 self.assertEqual(tx_hex, hex_) 75 for tx_hex, length in [ 80 tx = self.tx_deserialize_hex(tx_hex) 81 length_with_witness = len(tx_hex) // 2
|
/dports/net-p2p/namecoin-utils/namecoin-core-nc0.21.0.1/test/functional/test_framework/ |
H A D | wallet.py | 61 tx_hex = tx.serialize().hex() 63 txid = from_node.sendrawtransaction(tx_hex) 68 return {'txid': txid, 'wtxid': tx_info['wtxid'], 'hex': tx_hex}
|
/dports/net-p2p/namecoin-daemon/namecoin-core-nc0.21.0.1/test/functional/test_framework/ |
H A D | wallet.py | 61 tx_hex = tx.serialize().hex() 63 txid = from_node.sendrawtransaction(tx_hex) 68 return {'txid': txid, 'wtxid': tx_info['wtxid'], 'hex': tx_hex}
|
/dports/net-p2p/namecoin/namecoin-core-nc0.21.0.1/test/functional/test_framework/ |
H A D | wallet.py | 61 tx_hex = tx.serialize().hex() 63 txid = from_node.sendrawtransaction(tx_hex) 68 return {'txid': txid, 'wtxid': tx_info['wtxid'], 'hex': tx_hex}
|