From b5e7993736f15feee2a86fda2dbf10fca54d1cc4 Mon Sep 17 00:00:00 2001 From: abitmore Date: Mon, 22 Feb 2021 17:04:03 +0000 Subject: [PATCH] Fix data error in (virtual) execute_bid_operation --- libraries/chain/db_market.cpp | 4 ++-- libraries/chain/include/graphene/chain/config.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/chain/db_market.cpp b/libraries/chain/db_market.cpp index d24598b372..f0c07435c1 100644 --- a/libraries/chain/db_market.cpp +++ b/libraries/chain/db_market.cpp @@ -214,8 +214,8 @@ void database::execute_bid( const collateral_bid_object& bid, share_type debt_co stats.total_core_in_orders += call_obj.collateral; }); - push_applied_operation( execute_bid_operation( bid.bidder, asset( call_obj.collateral, bid.inv_swan_price.base.asset_id ), - asset( debt_covered, bid.inv_swan_price.quote.asset_id ) ) ); + push_applied_operation( execute_bid_operation( bid.bidder, asset( debt_covered, bid.inv_swan_price.quote.asset_id ), + asset( call_obj.collateral, bid.inv_swan_price.base.asset_id ) ) ); remove(bid); } diff --git a/libraries/chain/include/graphene/chain/config.hpp b/libraries/chain/include/graphene/chain/config.hpp index cb0b381dc7..1c85d78aac 100644 --- a/libraries/chain/include/graphene/chain/config.hpp +++ b/libraries/chain/include/graphene/chain/config.hpp @@ -30,7 +30,7 @@ #define GRAPHENE_MAX_NESTED_OBJECTS (200) -#define GRAPHENE_CURRENT_DB_VERSION "20201105" +#define GRAPHENE_CURRENT_DB_VERSION "20210222" #define GRAPHENE_RECENTLY_MISSED_COUNT_INCREMENT 4 #define GRAPHENE_RECENTLY_MISSED_COUNT_DECREMENT 3