Skip to content

Commit

Permalink
Merge pull request #2363 from bitshares/fix-execute-bid-op
Browse files Browse the repository at this point in the history
Fix data error in (virtual) execute_bid_operation
  • Loading branch information
abitmore authored Mar 5, 2021
2 parents e1b9e2a + b5e7993 commit 3ac85df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libraries/chain/db_market.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/chain/include/graphene/chain/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ac85df

Please sign in to comment.