|
|
@ -172,6 +172,9 @@ func (bs *BlockStore) SaveBlock(block *types.Block, blockParts *types.PartSet, s |
|
|
|
|
|
|
|
// Done!
|
|
|
|
bs.height = height |
|
|
|
|
|
|
|
// Flush
|
|
|
|
bs.db.SetSync(nil, nil) |
|
|
|
} |
|
|
|
|
|
|
|
func (bs *BlockStore) saveBlockPart(height int, index int, part *types.Part) { |
|
|
@ -213,7 +216,7 @@ func (bsj BlockStoreStateJSON) Save(db dbm.DB) { |
|
|
|
if err != nil { |
|
|
|
PanicSanity(Fmt("Could not marshal state bytes: %v", err)) |
|
|
|
} |
|
|
|
db.Set(blockStoreKey, bytes) |
|
|
|
db.SetSync(blockStoreKey, bytes) |
|
|
|
} |
|
|
|
|
|
|
|
func LoadBlockStoreStateJSON(db dbm.DB) BlockStoreStateJSON { |
|
|
|