add command pop_blocks

add new public method to Blockchain and update according to code review

update after review: better lock/unlock, try catch and coding style
This commit is contained in:
Jason Wong 2018-11-25 22:08:07 +01:00
parent 58ce16d4d9
commit dc1c12528d
10 changed files with 138 additions and 0 deletions

View file

@ -139,6 +139,8 @@ public:
bool sync_info(const std::vector<std::string>& args);
bool pop_blocks(const std::vector<std::string>& args);
bool version(const std::vector<std::string>& args);
};