sendtx -> sendrawtransaction

This commit is contained in:
ThomasV 2013-02-25 21:01:02 +01:00
parent 8682608813
commit f0eb5e1316
1 changed files with 4 additions and 4 deletions

View File

@ -50,8 +50,8 @@ Syntax: payto <recipient> <amount> [label]
<recipient> can be a bitcoin address or a label
options:\n --fee, -f: set transaction fee\n --fromaddr, -s: send from address -\n --changeaddr, -c: send change to address
""",
'sendtx':
'Broadcasts a transaction to the network. \nSyntax: sendtx <tx>\n<tx> must be in hexadecimal.',
'sendrawtransaction':
'Broadcasts a transaction to the network. \nSyntax: sendrawtransaction <tx in hexadecimal>',
'password':
"Changes your password",
'addresses':
@ -613,8 +613,8 @@ if __name__ == '__main__':
del(wallet.history[from_addr])
wallet.save()
elif cmd == 'sendtx':
tx = args[1]
elif cmd == 'sendrawtransaction':
tx = Transaction(args[1])
r, h = wallet.sendtx( tx )
print_msg(h)