Byron Hambly
0e89b30f95
Merge 8add59d77d into merged_master (Bitcoin PR bitcoin/bitcoin#24367 )
2023-07-02 07:33:56 +00:00
Byron Hambly
e129d42b92
Merge d20d6ac545 into merged_master (Bitcoin PR bitcoin/bitcoin#23672 )
...
Updated the addresses and scripts in rpc_decodescript.json to work with
elements
2023-06-02 08:14:30 +00:00
Byron Hambly
02b4c59511
Merge fe03f7a37f into merged_master (Bitcoin PR bitcoin/bitcoin#23540 )
2023-05-26 13:57:11 +00:00
Byron Hambly
bd68371fb6
Merge ffdab41f94 into merged_master (Bitcoin PR bitcoin/bitcoin#23474 )
2023-05-26 10:32:04 +00:00
James Dorfman
ebc6e3967f
Merge bb60960750 into merged_master (Bitcoin PR bitcoin/bitcoin#22593 )
2023-04-03 20:34:45 +00:00
Jon Atack
48742693ac
Replace "can not" with "cannot" in docs, user messages, and tests
2022-02-21 19:07:29 +01:00
Dimitri
b35942e500
tests: Add data-driven testcases to rpc_decodescript.py
2021-12-05 22:07:04 +01:00
Sebastian Falbesoner
83f6c0f9ef
test: add decodescript RPC test for P2TR output type
2021-11-18 01:07:26 +01:00
Sebastian Falbesoner
099c6957de
test: check for decodescript RPC 'type' results
2021-11-18 00:11:10 +01:00
Sebastian Falbesoner
0d43525c61
test: add logging to rpc_decodescript.py
...
Also remove the enumerations ("1)", "2)"...) from the test
cases as those potentially hinder maintainability; e.g. if a
new case in inserted in-between, all the remaining
enumerations would need to be adapted.
2021-11-17 23:26:28 +01:00
MarcoFalke
fac23c2114
scripted-diff: Bump copyright headers
...
The previous diff touched most files in ./test/, so bump the headers to
avoid having to touch them again for a bump later.
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./test/
-END VERIFY SCRIPT-
2021-11-10 11:10:24 +01:00
Sebastian Falbesoner
ca6c154ef1
test: refactor: remove hex_str_to_bytes helper
...
Use the built-in class method bytes.fromhex() instead,
which is available since Python 3.0.
2021-08-01 19:26:51 +02:00
Andrew Poelstra
083e08cf82
Merge d6a59166a1 into merged_master (Bitcoin PR bitcoin/bitcoin#22257 )
...
Just as mechanical and annoying as it looks.
2021-07-28 21:06:57 +00:00
Sebastian Falbesoner
2ce7b47958
test: introduce tx_from_hex helper for tx deserialization
...
`FromHex` is mostly used for transactions, so we introduce a
shortcut `tx_from_hex` for `FromHex(CTransaction, hex_str)`.
2021-06-21 14:28:05 +02:00
Andrew Poelstra
67d718b048
Merge a74d588f21 into merged_master (Bitcoin PR #14954 )
2020-10-27 22:32:24 +00:00
Steven Roose
39020cdc7b
Adapt existing functional tests to CA
2019-03-20 12:06:03 +00:00
MarcoFalke
faa7cdf764
scripted-diff: Update copyright in ./test
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./test/
-END VERIFY SCRIPT-
2019-03-02 10:58:35 -05:00
MarcoFalke
fa6bf21f5e
scripted-diff: test: Use py3.5 bytes::hex() method
...
-BEGIN VERIFY SCRIPT-
sed -i -e "s/def bytes_to_hex_str/def b_2_x/g" $(git grep -l bytes_to_hex_str)
export RE_B_0="[^()]*" # match no bracket
export RE_B_1="${RE_B_0}\(${RE_B_0}\)${RE_B_0}" # match exactly one ()
export RE_B_2="${RE_B_0}\(${RE_B_1}\)${RE_B_0}" # match wrapped (())
export RE_M="(b2x|bytes_to_hex_str)\(((${RE_B_0}|${RE_B_1}|${RE_B_2})*)\)"
sed -i --regexp-extended -e "s/${RE_M}/\2.hex()/g" $(git grep -l -E '(b2x|bytes_to_hex_str)')
sed -i --regexp-extended -e "/ +bytes_to_hex_str( as b2x)?,/d" $(git grep -l bytes_to_hex_str)
sed -i --regexp-extended -e "s/ +bytes_to_hex_str( as b2x)?,//g" $(git grep -l bytes_to_hex_str)
sed -i --regexp-extended -e "s/, bytes_to_hex_str( as b2x)?//g" $(git grep -l bytes_to_hex_str)
export RE_M="(binascii\.)?hexlify\(((${RE_B_0}|${RE_B_1}|${RE_B_2})*)\).decode\(${RE_B_0}\)"
sed -i --regexp-extended -e "s/${RE_M}/\2.hex()/g" $(git grep -l hexlify -- ':(exclude)share')
sed -i --regexp-extended -e "/from binascii import hexlify$/d" $(git grep -l hexlify -- ':(exclude)share')
sed -i --regexp-extended -e "s/(from binascii import) .*hexlify/\1 unhexlify/g" $(git grep -l hexlify -- ':(exclude)share')
sed -i -e 's/ignore-names "/ignore-names "b_2_x,/g' ./test/lint/lint-python-dead-code.sh
-END VERIFY SCRIPT-
2019-03-02 10:40:12 -05:00
Steven Roose
fb72ee8fc8
Add Elements-style witness serialization
2019-02-13 11:42:38 +00:00
practicalswift
68400d8b96
tests: Use explicit imports
2018-08-13 14:13:39 +02:00
DrahtBot
eb7daf4d60
Update copyright headers to 2018
2018-07-27 07:15:02 -04:00
fivepiece
4f933b3d23
p2wpkh, p2wsh and p2sh-nested scripts in decodescript
...
plus tests
2018-03-06 23:10:18 +02:00
Anthony Towns
81b79f2c39
[tests] Rename rpc_* functional tests.
2018-01-25 09:44:29 +10:00