-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
884fe20
to
0e17e47
Compare
Cargo.toml
Outdated
@@ -89,6 +89,3 @@ travis-ci = { repository = "paritytech/polkadot", branch = "master" } | |||
maintenance = { status = "actively-developed" } | |||
is-it-maintained-issue-resolution = { repository = "paritytech/polkadot" } | |||
is-it-maintained-open-issues = { repository = "paritytech/polkadot" } | |||
|
|||
[profile.release] | |||
panic = "abort" |
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.
Even though panic=unwind
is the default, I'd rather specify it explicitly with a comment for documentation purposes.
substrate/client/src/error.rs
Outdated
@@ -111,6 +118,12 @@ error_chain! { | |||
description("remote fetch failed"), | |||
display("Remote data fetch has been failed"), | |||
} | |||
|
|||
/// Error decoding extrinsic outcome. | |||
ApplyExtinsicFailed { |
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.
- I'm not sure why this is called
ApplyExtinsicFailed
? I think it is more likeApplyResultDecodeFailed
- Why the comment, description and display messages refers to an
outcome
and not to aresult
?
substrate/client/src/error.rs
Outdated
Runtime(e: ApplyError) { | ||
description("Extrinsic error"), | ||
display("Extrinsic 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.
Should we rename this to something more extrinsic-related. We could use ApplyExtinsicFailed
for this IMO.
Would be nice to know why the transaction queue/block builder was letting blatantly invalid transactions through at all... |
Transaction pool does not check for insufficient balance currently. And for signature correctness as far as I can see. |
* master: (86 commits) Make contract a separate runtime module (#345) Version bump (#450) DB-based blockchain data cache for light nodes (#251) Update libp2p again (#445) Update version on git head change (#444) Fix the public key of bootnode 3 (#441) Update libp2p (#442) Switch to the master branch of libp2p (#427) Export ws port 9944 and add doc (#440) Iterate over overlay to decide which keys to purge (#436) Exit signal gets its own trait (#433) Add docker image (#375) Reset peers.json if the content is not loadable (#405) Limit number of incoming connections (#391) Fix memory leaks in libp2p (#432) Do not queue empty blocks set for import (#431) 5 random fixes (#1) (#435) Chore: fix typo (#434) Prevent building invalid blocks (#430) Better logging for public key mismatch (#429) ...
* trigger pipeline in github-api for polkasync * update polkadot branch name for replacement * deployment: update project
…tor-part-2 Refactor cirrus executor (part 2)
* test-runtime: Fix README typo Signed-off-by: Alexandru Vasile <[email protected]> * test-runtime: Explicit error handling for missing substrate binary Signed-off-by: Alexandru Vasile <[email protected]> * test-runtime: Fix documentation typo Signed-off-by: Alexandru Vasile <[email protected]> * events: Test primitive decode_and_consume Signed-off-by: Alexandru Vasile <[email protected]> * events: Test tuple decode_and_consume Signed-off-by: Alexandru Vasile <[email protected]> * events: Test array decode_and_consume Signed-off-by: Alexandru Vasile <[email protected]> * events: Extend array with sequences Signed-off-by: Alexandru Vasile <[email protected]> * events: Test variant decode_and_consume Signed-off-by: Alexandru Vasile <[email protected]> * events: Test composite decode_and_consume Signed-off-by: Alexandru Vasile <[email protected]> * events: Test compact decode_and_consume Signed-off-by: Alexandru Vasile <[email protected]>
apply_extrinsic
return value is now considered by the block builder.panic=abort
since native runtime requires unwinding.