Commit Graph

13 Commits

Author SHA1 Message Date
Wei Yang b415f08c46 make it a package bc 2017-10-22 10:20:14 +08:00
Wei Yang 29099f0c02 check wallet before sending
We could only send money from our own wallet.

If the parameter is not an address in our wallet, exit the program gracefully
and show an error message.
2017-10-18 11:54:37 +08:00
Ivan Kuznetsov 5c4340f47d Add -miner flag to 'startnode' command 2017-10-03 16:21:15 +07:00
Ivan Kuznetsov 150778f920 Add -mine option to the 'send' command 2017-10-03 15:54:31 +07:00
Ivan Kuznetsov 3cb93b5278 Implement 'tx' command (WIP) 2017-10-03 15:47:27 +07:00
Ivan Kuznetsov 0c91da0e52 Wallet file name must depend on node ID 2017-10-01 10:48:51 +07:00
Ivan Kuznetsov 57f3680551 Blockchain file name must depend on node ID 2017-10-01 10:42:34 +07:00
Ivan Kuznetsov 99d1134beb Update the UTXO set after mining a new block 2017-09-17 12:21:24 +07:00
Ivan Kuznetsov 3e491be4d7 Use the UTXO set to send coins 2017-09-17 11:49:59 +07:00
Ivan Kuznetsov cb78220abb Remove the 'address' argument from NewBlockchain, since it's not used anymore 2017-09-17 10:43:23 +07:00
Ivan Kuznetsov 56ccd7c8ca Implement rewards 2017-09-17 09:16:50 +07:00
Ivan Kuznetsov a436da6c19 Implement ValidateAddress 2017-09-10 13:53:14 +07:00
Ivan Kuznetsov 5f9e6c0c91 Extract CLI commands into separate files 2017-09-10 12:53:06 +07:00