From 586187740bf4bbb7ec45afaffffe583afdec8101 Mon Sep 17 00:00:00 2001 From: satellitex Date: Wed, 14 Jun 2017 18:27:10 +0900 Subject: [PATCH] add ::ametsuchi::commit method --- core/ametsuchi/ametsuchi.cpp | 4 ++++ core/ametsuchi/ametsuchi.hpp | 1 + core/peer_service/synchronizer/synchronizer.cpp | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/ametsuchi/ametsuchi.cpp b/core/ametsuchi/ametsuchi.cpp index e75f8ea530..e707cc6301 100644 --- a/core/ametsuchi/ametsuchi.cpp +++ b/core/ametsuchi/ametsuchi.cpp @@ -26,4 +26,8 @@ namespace ametsuchi{ } + void commit(){ + + } + } \ No newline at end of file diff --git a/core/ametsuchi/ametsuchi.hpp b/core/ametsuchi/ametsuchi.hpp index 749edfaf2e..efae722a17 100644 --- a/core/ametsuchi/ametsuchi.hpp +++ b/core/ametsuchi/ametsuchi.hpp @@ -24,6 +24,7 @@ namespace ametsuchi{ // This is stub, maybe it will be changed. std::string getMerkleRoot(); void append(const iroha::protocol::Block&); + void commit(); } diff --git a/core/peer_service/synchronizer/synchronizer.cpp b/core/peer_service/synchronizer/synchronizer.cpp index 261b4d8771..01b2aee8a2 100644 --- a/core/peer_service/synchronizer/synchronizer.cpp +++ b/core/peer_service/synchronizer/synchronizer.cpp @@ -62,7 +62,7 @@ namespace peer_service{ ::peer_service::self_state::activate(); ::ametsuchi::append(block); - //::ametsuchi::commit(); + ::ametsuchi::commit(); detail::clearCache(); }