commit f0eb5e1316b69baf0989cfd971f049d72a672b1e
parent 86826088130b4a1e1b84a87a3c2ea52144a7cdd3
Author: ThomasV <thomasv@gitorious>
Date: Mon, 25 Feb 2013 21:01:02 +0100
sendtx -> sendrawtransaction
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/electrum b/electrum
@@ -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)