Commit Graph

18 Commits

Author SHA1 Message Date
Ivan Kuznetsov 751d791399 Implement 'createblockchain' command 2017-09-03 11:17:10 +07:00
Ivan Kuznetsov 5b46248ff2 Rework the CLI using 'flag' 2017-08-29 12:09:47 +07:00
Ivan Kuznetsov b0791af5c6 Improve command line arguments processing 2017-08-28 21:03:43 +07:00
Ivan Kuznetsov 52477175c1 Implement basic CLI 2017-08-28 16:48:53 +07:00
Ivan Kuznetsov a93e1e96c9 Store a DB connection in Blockchain 2017-08-28 16:28:23 +07:00
Ivan Kuznetsov e6cf54a124 Refactor NewBlockchain 2017-08-28 16:16:45 +07:00
Ivan Kuznetsov fdccadfb63 Implement DB persistence 2017-08-28 13:57:27 +07:00
Ivan Kuznetsov 2a9385dd5b Rename ConfirmProof function to Validate 2017-08-24 10:35:14 +07:00
Ivan Kuznetsov f94bbb4451 Improve ConfirmProof and print it out in main() 2017-08-22 11:41:15 +07:00
Ivan Kuznetsov 0f23d64aa0 Implement Proof-of-Work 2017-08-21 17:50:41 +07:00
Ivan Kuznetsov 9104fae035 Rename PrevBlock to PrevBlockHash for clarity 2017-08-17 13:04:56 +07:00
Ivan Kuznetsov 6fbf7ac6b4 Make the output more verbose 2017-08-16 14:20:18 +07:00
Ivan Kuznetsov 8767cb3528 Improve output 2017-08-16 12:33:54 +07:00
Ivan Kuznetsov 53c83d4ad2 Capitalize Block.hash 2017-08-16 12:33:15 +07:00
Ivan Kuznetsov b97fb423a7 Extract Block and Blockchain into separate files 2017-08-15 14:29:52 +07:00
Ivan Kuznetsov 23982003a4 Implement blockchain as a storage of blocks 2017-08-15 14:28:18 +07:00
Ivan Kuznetsov 822bde77c9 Implement basic blocks 2017-08-15 14:20:34 +07:00
Ivan Kuznetsov 6f3810242b Init 2017-08-15 14:05:02 +07:00