mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
Update to latest Substrate master. (#353)
* Integrate srml/im-online * Fix all build errors with old aura. * Fix most of the build errors. * Builds and tests seem to pass (I will not trust this commit yet) * Apply suggestions from code review Co-Authored-By: Robert Habermeier <rphmeier@gmail.com> * Kill some warnings. * fix panics on 0 validators * Fix dev chain. * Fix author stuff * fix im online integration. * Some tweaks * Introduce app-crypto * Initial build work * codec update / tweaks * patch polkadot-erasure-coding input * More fixes for new crypto * More fixes * Update parachains module * evamp parachain crypto * More crypto work. * Chain spec and service. * ChainSpec stuff * Last bits for a clean build * Tweak coment * adapt polkadot-validation to the new keystore * polkadot-network compiles, but tests don't * Integrate the new parachain validation stuff * delete message_routing file * make polkadot-network tests compile and pass * runtime tests compile and pass * update substrate ref * service compiles * all tests pass * Add TODO, change branch back to polkadot-master * Lock file * TODOs done * Issue number * Remove old tODO * Remove commented code
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
|
||||
#![cfg_attr(feature = "no_std", feature(core_intrinsics, lang_items, core_panic_info, alloc_error_handler))]
|
||||
|
||||
use parity_codec::{Encode, Decode};
|
||||
use codec::{Encode, Decode};
|
||||
|
||||
#[cfg(feature = "no_std")]
|
||||
mod wasm_validation;
|
||||
@@ -80,7 +80,7 @@ pub fn process_messages<I, T>(iterable: I) -> u64
|
||||
where I: IntoIterator<Item=T>, T: AsRef<[u8]>
|
||||
{
|
||||
iterable.into_iter()
|
||||
.filter_map(|data| AddMessage::decode(&mut data.as_ref()))
|
||||
.filter_map(|data| AddMessage::decode(&mut data.as_ref()).ok())
|
||||
.fold(0u64, |a, c| a.overflowing_add(c.amount).0)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user