You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let on_chain_nonce = self.account_nonce(&block_hash);
1120
+
let on_chain_nonce = matchself.account_nonce(&block_hash){
1121
+
Ok(nonce) => nonce,
1122
+
Err(e) => {
1123
+
warn!(
1124
+
target:LOG_TARGET,
1125
+
"Failed to get on-chain nonce while cleaning up tx manager at block {}. If this is the genesis block or a sufficiently old block, this is expected and can be ignored: {e}",
1126
+
block_hash
1127
+
);
1128
+
return;
1129
+
}
1130
+
};
1108
1131
self.transaction_manager
1109
1132
.cleanup_stale_nonce_gaps(on_chain_nonce);
1110
1133
@@ -1116,15 +1139,28 @@ where
1116
1139
///
1117
1140
/// Get the on-chain nonce for the given block hash and cleans up all pending transactions below that nonce.
"This node is a follower and cannot perform DB cleanup. Only leader or standalone nodes may perform DB cleanup"
1148
+
"This node is a follower or standalone and cannot perform DB cleanup. Only leader nodes may perform DB cleanup"
1123
1149
);
1124
1150
return;
1125
1151
}
1126
1152
1127
-
let on_chain_nonce = self.account_nonce(&block_hash);
1153
+
let on_chain_nonce = matchself.account_nonce(&block_hash){
1154
+
Ok(nonce) => nonce,
1155
+
Err(e) => {
1156
+
warn!(
1157
+
target:LOG_TARGET,
1158
+
"Failed to get on-chain nonce while cleaning up pending tx store at block {}. If this is the genesis block or a sufficiently old block, this is expected and can be ignored: {e}",
1159
+
block_hash
1160
+
);
1161
+
return;
1162
+
}
1163
+
};
1128
1164
1129
1165
ifletSome(store) = &self.pending_tx_store{
1130
1166
let caller_pub_key = Self::caller_pub_key(self.keystore.clone());
@@ -1331,7 +1367,17 @@ where
1331
1367
block_hash:Runtime::Hash,
1332
1368
){
1333
1369
// Detect gaps in the nonce sequence
1334
-
let on_chain_nonce = self.account_nonce(&block_hash);
1370
+
let on_chain_nonce = matchself.account_nonce(&block_hash){
1371
+
Ok(nonce) => nonce,
1372
+
Err(e) => {
1373
+
warn!(
1374
+
target:LOG_TARGET,
1375
+
"Failed to get on-chain nonce while handling old nonce gaps at block {}. If this is the genesis block or a sufficiently old block, this is expected and can be ignored: {e}",
0 commit comments