This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2018-05-17 09:17:23 main INFO polkadot Imported #65681 (5573�9d4a) | |
| thread '<unnamed>' panicked at 'Externalities not allowed to fail within runtime: Error(Msg("Trie lookup error: Invalid state root: 0xa87a�11cc"), State { next_error: None, backtrace: None })', libcore/result.rs:945:5 | |
| 2018-05-17 09:17:23 WARN consensus Error computing next transaction index: Runtime error | |
| 2018-05-17 09:17:23 TRACE sync Announcing block 55734daff7cb041284ab93ace33b7c5c8dbb099c1470c7f0161b102c6d919d4a to 18 | |
| 2018-05-17 09:17:23 TRACE sync Clearing conensus message cache | |
| 2018-05-17 09:17:23 TRACE sync Cleaned up 14 stale messages | |
| 2018-05-17 09:17:23 TRACE bft max_faulty_of(4)=1 | |
| 2018-05-17 09:17:24 IO Worker #1 TRACE sync BFT message from 18: LocalizedBftMessage { message: Consensus(Vote(SignedConsensusVote { vote: Commit(2, 55734daff7cb041284ab93ace33b7c5c8dbb099c1470c7f0161b102c6d919d4a), sender: [129, 1, 118, 79, 69, 119, 141, 73, 128, 218, 218, 2 | |
| 06, 238, 110, 138, 242, 81, 125, 58, 185, 26, 201, 190, 201, 205, 23, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2018-05-17 09:17:28 main INFO polkadot Idle (2 peers), best: #65681 (5573�9d4a) | |
| 2018-05-17 09:17:28 IO Worker #2 TRACE sync BFT message from 23: LocalizedBftMessage { message: Consensus(Vote(SignedConsensusVote { vote: Prepare(1, 7fb512fd0ee567df71e06def7b40b045cdeb4f61ff625f52336eab754831f8a2), sender: [130, 195, 155, 49, 162, 183, 154, 144, 248, 230, 1 | |
| 10, 122, 119, 253, 184, 90, 78, 213, 81, 127, 42, 227, 159, 106, 128, 86, 94, 142, 202, 232, 92, 245], signature: cb5df0ed88908bb9634764b724f445d2cd058579ea1844a475a70633847e84b290e1e3d5537fa624e1e0bf843083ccd66ecc02910fa8c5886ccee6ef3bb6740a })), parent_hash: 55734daff7cb0412 | |
| 84ab93ace33b7c5c8dbb099c1470c7f0161b102c6d919d4a } | |
| 2018-05-17 09:17:28 TRACE bft importing vote Prepare(1, 7fb512fd0ee567df71e06def7b40b045cdeb4f61ff625f52336eab754831f8a2) from 82c3�5cf5 | |
| 2018-05-17 09:17:28 TRACE bft Polling BFT logic. State=(1, Proposed) | |
| 2018-05-17 09:17:28 TRACE bft Polling BFT logic. State=(1, Prepared(true)) | |
| 2018-05-17 09:17:28 TRACE sync Broadcasting BFT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2018-05-14 16:40:31 Idle (2 peers), best: #54864 (a74f…83a1) | |
| 2018-05-14 16:40:35 Imported #54865 (a30d…7668) | |
| 2018-05-14 16:40:36 Idle (2 peers), best: #54865 (a30d…7668) | |
| 2018-05-14 16:40:41 Idle (2 peers), best: #54865 (a30d…7668) | |
| 2018-05-14 16:40:46 Idle (2 peers), best: #54865 (a30d…7668) | |
| 2018-05-14 16:40:51 Idle (2 peers), best: #54865 (a30d…7668) | |
| 2018-05-14 16:40:56 Idle (2 peers), best: #54865 (a30d…7668) | |
| 2018-05-14 16:41:01 Idle (2 peers), best: #54865 (a30d…7668) | |
| 2018-05-14 16:41:06 Idle (2 peers), best: #54865 (a30d…7668) | |
| 2018-05-14 16:41:11 Idle (2 peers), best: #54865 (a30d…7668) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright 2017 Parity Technologies (UK) Ltd. | |
| // This file is part of Substrate Demo. | |
| // Substrate Demo is free software: you can redistribute it and/or modify | |
| // it under the terms of the GNU General Public License as published by | |
| // the Free Software Foundation, either version 3 of the License, or | |
| // (at your option) any later version. | |
| // Substrate Demo is distributed in the hope that it will be useful, | |
| // but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mod new1 { | |
| use super::{Number, Hash}; | |
| /// A block-level event. Encodes something that happened in-block which is important to | |
| /// light-clients. There are a number of reserved event types. | |
| type Event = Vec<u8>; | |
| /// The header of a block. This is the minimal amount of data required to sync the chain at | |
| /// minimal viable security. It contains nothing more than cryptographic references. | |
| struct Header { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mod new1 { | |
| use super::{Number, Hash}; | |
| /// The header of a block. This is the minimal amount of data required to sync the chain at | |
| /// minimal viable security. It contains nothing more than cryptographic references. | |
| struct Header { | |
| /// Cryptographic reference to the previous block's header. | |
| parent: Hash, | |
| /// Cryptographic reference to pieces of extrinsic information (assumed to be an ordered | |
| /// list of `Extrinsic`, keyed into a Merkle trie by a 0-based index). Extrinsic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::result; | |
| use parity_wasm::elements::Module; | |
| use parity_wasm::interpreter::UserFunctionDescriptor; | |
| #[derive(Clone)] | |
| struct DummyUserFunctionExecutor; | |
| impl<E: interpreter::UserError> interpreter::UserFunctionExecutor<E> for DummyUserFunctionExecutor { | |
| fn execute(&mut self, name: &str, context: interpreter::CallerContext<E>) -> | |
| result::Result<Option<interpreter::RuntimeValue>, interpreter::Error<E>> | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #![no_std] | |
| #![feature(lang_items)] | |
| #![cfg_attr(feature = "strict", deny(warnings))] | |
| #![feature(alloc)] | |
| extern crate alloc; | |
| use alloc::boxed::Box; | |
| extern crate pwasm_libc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // create new program | |
| let program = parity_wasm::ProgramInstance::new(); | |
| // load module | |
| let module_instance = program.add_module("main", module, Some(¶ms.externals)).unwrap(); | |
| // TODO: initialise memory needed here? | |
| // => linear memory is created | |
| let module_memory = module_instance.memory(ItemIndex::Internal(0)).unwrap(); | |
| // create native env module executor | |
| let mut executor = FunctionExecutor { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 017-07-12 14:51:07 IO Worker #0 TRACE network Connecting to V4(159.203.210.80:30303) | |
| 2017-07-12 14:51:07 IO Worker #0 TRACE network Sending handshake auth to "Unknown" | |
| 2017-07-12 14:51:07 IO Worker #0 TRACE network 13: Sending 307 bytes | |
| 2017-07-12 14:51:07 IO Worker #0 TRACE network Expect to read 210 bytes | |
| 2017-07-12 14:51:07 TRACE network connection reregister; token=Token(13) | |
| 2017-07-12 14:51:07 TRACE network connection register; token=Token(13) | |
| 2017-07-12 14:51:07 IO Worker #0 TRACE network Connecting to V4(37.128.191.230:30303) | |
| 2017-07-12 14:51:07 IO Worker #0 TRACE network Sending handshake auth to "Unknown" | |
| 2017-07-12 14:51:07 IO Worker #0 TRACE network 11: Sending 307 bytes | |
| 2017-07-12 14:51:07 IO Worker #0 TRACE network Expect to read 210 bytes |