Skip to content
This repository has been archived by the owner on Oct 12, 2020. It is now read-only.

Commit

Permalink
added missing patch to fix lmdb compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Coggins committed Jul 26, 2019
1 parent 7d98bcc commit c65e5c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blockchain_db/lmdb/db_lmdb.cpp.patch
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
bi.bi_hash = blk_hash;
bi.bi_cum_rct = num_rct_outs;
- if (blk.major_version >= 4)
+ bi.bi_pricing_record = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"\0"};
+ memset(&bi.bi_pricing_record, 0, sizeof(offshore::pricing_record));
+ if (m_height > 0)
{
uint64_t last_height = m_height-1;
Expand All @@ -39,6 +39,6 @@
bi.bi_hash = bi_old->bi_hash;
bi.bi_cum_rct = bi_old->bi_cum_rct;
bi.bi_long_term_block_weight = bi_old->bi_long_term_block_weight;
+ bi.bi_pricing_record = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"\0"};
+ memset(&bi.bi_pricing_record, 0, sizeof(offshore::pricing_record));

MDB_val_set(nv, bi);

0 comments on commit c65e5c0

Please sign in to comment.