diff --git a/pallets/ocex/src/lib.rs b/pallets/ocex/src/lib.rs index f28ffd08f..754eca04d 100644 --- a/pallets/ocex/src/lib.rs +++ b/pallets/ocex/src/lib.rs @@ -1889,12 +1889,15 @@ pub mod pallet { /// Fetch checkpoint for recovery pub fn fetch_checkpoint() -> Result { log::debug!(target:"ocex", "fetch_checkpoint called"); - let account_ids = + let mut account_ids = >::iter().fold(vec![], |mut ids_accum, (acc, acc_info)| { ids_accum.push((acc.clone(), acc_info.proxies)); ids_accum }); + // Add pot account to it + account_ids.push((Self::get_pot_account(), Default::default())); + let mut balances: BTreeMap = BTreeMap::new(); let mut q_scores_uptime_map = BTreeMap::new(); let mut maker_volume_map = BTreeMap::new(); diff --git a/pallets/ocex/src/validator.rs b/pallets/ocex/src/validator.rs index beb6e4e84..e1556d2e9 100644 --- a/pallets/ocex/src/validator.rs +++ b/pallets/ocex/src/validator.rs @@ -896,6 +896,7 @@ impl Pallet { )?; } + // Restore total maker volume for ((epoch, pair), total_maker_volume) in &checkpoint.total_maker_volume_map { crate::lmp::update_total_maker_volume(state, *epoch, *pair, *total_maker_volume)?; } diff --git a/runtimes/mainnet/src/lib.rs b/runtimes/mainnet/src/lib.rs index c846f8a3c..63bf482f8 100644 --- a/runtimes/mainnet/src/lib.rs +++ b/runtimes/mainnet/src/lib.rs @@ -122,7 +122,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // and set impl_version to 0. If only runtime // implementation changes and behavior does not, then leave spec_version as // is and increment impl_version. - spec_version: 337, + spec_version: 338, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 2, diff --git a/scripts/get_balance_rpc.sh b/scripts/get_balance_rpc.sh index 627c20125..e5d953680 100755 --- a/scripts/get_balance_rpc.sh +++ b/scripts/get_balance_rpc.sh @@ -3,5 +3,5 @@ curl -H "Content-Type: application/json" -d '{ "jsonrpc":"2.0", "id":1, "method":"ob_getBalance", - "params":["esntiQCvLG55kFN3cqJjQoA1VeBrx9oiorDobuejDta7xcokf",{"asset":"3496813586714279103986568049643838918"}] + "params":["esr4dJBv5123tkiA3beRZ3TrHbppJ6PdPxo2xHN4rmZJGDQJo",{"asset":"3496813586714279103986568049643838918"}] }' http://localhost:9944