Skip to content

Commit

Permalink
add ::ametsuchi::commit method
Browse files Browse the repository at this point in the history
  • Loading branch information
satellitex committed Jun 14, 2017
1 parent 1d08859 commit 5861877
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/ametsuchi/ametsuchi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ namespace ametsuchi{

}

void commit(){

}

}
1 change: 1 addition & 0 deletions core/ametsuchi/ametsuchi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

}

Expand Down
2 changes: 1 addition & 1 deletion core/peer_service/synchronizer/synchronizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace peer_service{
::peer_service::self_state::activate();

::ametsuchi::append(block);
//::ametsuchi::commit();
::ametsuchi::commit();

detail::clearCache();
}
Expand Down

0 comments on commit 5861877

Please sign in to comment.