mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 02:42:38 +00:00
Tweak migrations
This commit is contained in:
@@ -131,8 +131,10 @@ pub fn migrate_schema<T: BeaconChainTypes>(
|
||||
migration_schema_v9::downgrade_from_v9::<T>(db.clone(), log)?;
|
||||
db.store_schema_version(to)
|
||||
}
|
||||
// Upgrade from v9 to v11 to store richer metadata in the attestation op pool.
|
||||
(SchemaVersion(9), SchemaVersion(11)) => {
|
||||
// FIXME(sproul): stub for Sean's v10 migration
|
||||
(SchemaVersion(9), SchemaVersion(10)) => db.store_schema_version(to),
|
||||
// Upgrade from v10 to v11 to store richer metadata in the attestation op pool.
|
||||
(SchemaVersion(10), SchemaVersion(11)) => {
|
||||
let ops = migration_schema_v11::upgrade_to_v11::<T>(db.clone(), log)?;
|
||||
db.store_schema_version_atomically(to, ops)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use crate::beacon_chain::{BeaconChainTypes, OP_POOL_DB_KEY};
|
||||
use operation_pool::{PersistedOperationPool, PersistedOperationPoolV11, PersistedOperationPoolV5};
|
||||
use slog::{debug, Logger};
|
||||
use slog::{debug, info, Logger};
|
||||
use std::sync::Arc;
|
||||
use store::{Error, HotColdDB, KeyValueStoreOp, StoreItem};
|
||||
|
||||
@@ -47,7 +47,7 @@ pub fn downgrade_from_v11<T: BeaconChainTypes>(
|
||||
return Ok(vec![]);
|
||||
};
|
||||
|
||||
debug!(
|
||||
info!(
|
||||
log,
|
||||
"Dropping attestations from pool";
|
||||
"count" => v11.attestations.len(),
|
||||
|
||||
Reference in New Issue
Block a user