func (bsj BlockStoreStateJSON) Save(db dbm.DB) { bytes, err := json.Marshal(bsj) if err != nil { panic(Fmt("Could not marshal state bytes: %v", err)) } db.Set(blockStoreKey, bytes) }