-BEGIN VERIFY SCRIPT-
r() { sed -i 's/vout must be positive/vout cannot be negative/g' $1 }
r $(git grep -l 'vout must be positive')
-END VERIFY SCRIPT-
@ -96,7 +96,7 @@ class RawTransactionsTest(BitcoinTestFramework):
assert_raises_rpc_error(-8,"txid must be hexadecimal string (not 'ZZZ7bb8b1697ea987f3b223ba7819250cae33efacb068d23dc24859824a77844')",self.nodes[0].createrawtransaction,[{'txid':'ZZZ7bb8b1697ea987f3b223ba7819250cae33efacb068d23dc24859824a77844'}],{})
assert_raises_rpc_error(-8,"Invalid parameter, vout must be positive",self.nodes[0].createrawtransaction,[{'txid':txid,'vout':-1}],{})
assert_raises_rpc_error(-8,"Invalid parameter, vout cannot be negative",self.nodes[0].createrawtransaction,[{'txid':txid,'vout':-1}],{})
assert_raises_rpc_error(-8,"Invalid parameter, sequence number is out of range",self.nodes[0].createrawtransaction,[{'txid':txid,'vout':0,'sequence':-1}],{})