Skip to content

Commit ce31d0a

Browse files
committed
Fix timestamp-op-ret crash due to missing MAX_MONEY
1 parent 2a5dda4 commit ce31d0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/timestamp-op-ret.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import bitcoin.rpc
2323
import sys
2424

25+
from bitcoin import params
2526
from bitcoin.core import *
2627
from bitcoin.core.script import *
2728

@@ -53,7 +54,7 @@
5354

5455
change_addr = proxy.getnewaddress()
5556
change_pubkey = proxy.validateaddress(change_addr)['pubkey']
56-
change_out = CMutableTxOut(MAX_MONEY, CScript([change_pubkey, OP_CHECKSIG]))
57+
change_out = CMutableTxOut(params.MAX_MONEY, CScript([change_pubkey, OP_CHECKSIG]))
5758

5859
digest_outs = [CMutableTxOut(0, CScript([OP_RETURN, digest]))]
5960

0 commit comments

Comments
 (0)