Jon Atack
dca28634d7
test: ensure OP_1NEGATE satisfies BIP62 minimal push rule
...
with a regression test for PR 13084 and PR 17204.
4 years ago
MarcoFalke
fa488f131f
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
5 years ago
Jon Atack
9cdddae3b4
test: add rpc_signrawtransaction logging
5 years ago
Jon Atack
4d6cde38ce
test: refactor rpc_signrawtransaction witness script tests
...
to see what is distinct in each test.
5 years ago
MarcoFalke
fa2251df5e
test: Use one node to avoid a race due to missing sync in rpc_signrawtransaction
5 years ago
Andrew Chow
cd3b1569d9
Correctly compute redeemScript from witnessScript for signrawtransaction
...
ParsePrevouts uses GetScriptForWitness on the given witnessScript
to find the corresponding redeemScript. This is incorrect when the
witnessScript is either a P2PK or P2PKH script as it returns the
corresponding P2WPK script instead of turning the witnessScript
into a P2WSH script. Instead this should make the script a
WitnessV0ScriptHash destination and get the script for that.
Test cases are also added.
5 years ago
fanquake
b6f9e3576a
test: re-enable CLI test support by using EncodeDecimal in json.dumps()
...
As mentioned in
https://github.com/bitcoin/bitcoin/pull/17675#issuecomment-563188648
5 years ago
practicalswift
993e38a4e2
tests: Mark functional tests not supporting bitcoin-cli (--usecli) as such
5 years ago
John Newbery
839c3f7c49
[rpc] Remove signrawtransaction warning
...
signrawtransaction was deprecated in 0.17 and removed in 0.18. A warning
was left in place to tell users to migrate to using
signrawtransactionswithwallet or signrawtransactionwithkey. Remove the
warning now that it's been two releases since the method was removed.
6 years ago
MarcoFalke
faa7cdf764
scripted-diff: Update copyright in ./test
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./test/
-END VERIFY SCRIPT-
6 years ago
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-
6 years ago
MeshCollider
928beae007
Add test for P2SH-P2WSH in signrawtransactionwithkey and listunspent
6 years ago
gustavonalle
20442f617f
[wallet] remove redundand restart node
6 years ago
gustavonalle
db15805668
[wallet] Ensure wallet is unlocked before signing
6 years ago
MarcoFalke
fac9539836
qa: Run all tests even if wallet is not compiled
6 years ago
John Newbery
f7e9e70468
[rpc] Remove deprecated sigrawtransaction rpc method.
6 years ago
practicalswift
68400d8b96
tests: Use explicit imports
6 years ago
DrahtBot
eb7daf4d60
Update copyright headers to 2018
6 years ago
Andrew Chow
d60234885b
Add test for signrawtransaction
...
Add a brief test for signrawtransaction to ensure that compatibility is maintained.
7 years ago
Andrew Chow
1e79c055cd
Split signrawtransaction into wallet and non-wallet
...
Splits signrwatransaction into a wallet version (signrawtransactionwithwallet) and
non-wallet version (signrawtransactionwithkey). signrawtransaction is marked as DEPRECATED
and will call the right signrawtransaction* command as per the parameters in order to
maintain compatibility.
Updated signrawtransactions test to use new RPCs
7 years ago
Anthony Towns
81b79f2c39
[tests] Rename rpc_* functional tests.
7 years ago