-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
arkpar
commented
Aug 16, 2018
- Moved most of the common logic from polkadot transaction pool to substrate.
- Extrinsic hash type can now be different from the block hash type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some nits regarding style and formatting
substrate/service/src/lib.rs
Outdated
"chain" => chain_name.clone(), | ||
"pubkey" => &pubkey, | ||
); | ||
"name" => name.clone(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there are some spaces sneaked in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this was indentend anyway?
substrate/service/src/lib.rs
Outdated
Err(e) => match e.into_pool_error() { | ||
Ok(e) => match e.kind() { | ||
extrinsic_pool::ErrorKind::AlreadyImported(hash) => | ||
Some(::std::str::FromStr::from_str(&hash).map_err(|_| {}).expect("Hash string is always valid")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we wrap this line ?
substrate/service/src/lib.rs
Outdated
}, | ||
}, | ||
Err(e) => { | ||
debug!("Error converting pool error: {:?}", e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The indentation looks a bit off here
substrate/service/src/lib.rs
Outdated
state, | ||
chain, | ||
author, | ||
rpc_config.clone(), | ||
) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inconsistent indentation
substrate/rpc/src/author/tests.rs
Outdated
type Extrinsic = u64; | ||
type Hash = u64; | ||
#[derive(Clone, Debug)] | ||
pub struct Verified(u64, u64); // sender, nonce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be more readable if it were a normal struct instead of a tuple?
7be70d2
to
24ddf08
Compare
24ddf08
to
bbd69db
Compare
looks reasonable. |
…and-rlpcodec * master: More generic extrinsic pool (#579)
* Update wasm build step * Update pre_release ci * Minimize change Co-authored-by: alannotnerd <alan1995wang@outlook.com>
* cli: Support ws or wss connection via jsonrpsee Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cli: Handle `http` connections via `ureq` Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cli: Use Jsonrpsee HTTP client Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cli: Remove `node.to_string()` calls Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>