mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-30 07:29:49 +00:00
Fix the undeterministic storage proof recorded for the same execution (#10915)
* Add a test case for the determinism of recorded proof * Replace HashMap with BTreeMap for the actual proof records * cargo +nightly fmt --all * Store the trie nodes in BTreeSet for StorageProof * Nit * Revert the BTreeMap changes and sort when converting to storage proof * Remove PartialEq from StorageProof * Remove unnecessary change * Add `compare` method to StorageProof * FMT * Dummy change to trigger CI * Use `BTreeSet` for StorageProof and keep using `Vec` for CompactProof * Update comment on `iter_nodes` * Revert `PartialEq` removal
This commit is contained in:
1 parent
545ac4cf50
commit
6f59a8b183
5 files changed
+65
-32
No files matched your search
@@ -432,8 +432,9 @@ impl HttpApi {
|
||||
);
|
||||
},
|
||||
None => {}, // can happen if we detected an IO error when sending the body
|
||||
_ =>
|
||||
tracing::error!(target: "offchain-worker::http", "State mismatch between the API and worker"),
|
||||
_ => {
|
||||
tracing::error!(target: "offchain-worker::http", "State mismatch between the API and worker")
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
@@ -443,8 +444,9 @@ impl HttpApi {
|
||||
self.requests.insert(id, HttpApiRequest::Fail(error));
|
||||
},
|
||||
None => {}, // can happen if we detected an IO error when sending the body
|
||||
_ =>
|
||||
tracing::error!(target: "offchain-worker::http", "State mismatch between the API and worker"),
|
||||
_ => {
|
||||
tracing::error!(target: "offchain-worker::http", "State mismatch between the API and worker")
|
||||
},
|
||||
},
|
||||
|
||||
None => {
|
||||
|
||||
Reference in new issue
Block a user