Skip to content

Commit

Permalink
Merge pull request #176 from peerplays-network/feature/SON-142
Browse files Browse the repository at this point in the history
[SON-142] Fix the failed tests in SONs-base
  • Loading branch information
oxarbitrage committed Oct 14, 2019
2 parents f3150d4 + 342099f commit 6c8f4bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libraries/db/include/graphene/db/index.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,15 @@ namespace graphene { namespace db {
DerivedIndex::remove(obj);
}

virtual const object& insert( object&& obj )override
{
const auto& res = DerivedIndex::insert(std::move(obj));
for( const auto& item : _sindex )
item->object_inserted( res );
on_add(res);
return res;
}

virtual void modify( const object& obj, const std::function<void(object&)>& m )override
{
save_undo( obj );
Expand Down
2 changes: 2 additions & 0 deletions tests/common/database_fixture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ database_fixture::database_fixture()
mhplugin->plugin_startup();
bookieplugin->plugin_startup();
affiliateplugin->plugin_startup();
// stats api requests affiliate_stats plugin from app, so add it to app plugin list
app.enable_plugin(affiliateplugin->plugin_name());

generate_block();

Expand Down

0 comments on commit 6c8f4bf

Please sign in to comment.