-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[light-client] remove pending parentchain tx-inclusion check #1455
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
78eb3ee
[itc-light-client] remove failing check for parentchain xt inclusion
clangenb fbff27d
[itc-light-client] Add comment about justifying headers
clangenb 9582d4e
[itc-light-client] Just in case debug log unjustified headers
clangenb 73214ef
[itc-light-client] typos in comments
clangenb 03d1c15
[itc-parentchain-block-importer] update obsolete documentation
clangenb 631663e
Merge branch 'master' into cl/avoid-growing-unfinalized-header-queue
clangenb b515a45
Merge branch 'master' into cl/avoid-growing-unfinalized-header-queue
clangenb 2a23141
Merge branch 'master' into cl/avoid-growing-unfinalized-header-queue
clangenb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,10 +17,7 @@ | |
|
||
use codec::{Decode, Encode}; | ||
use sp_consensus_grandpa::{AuthorityList, SetId}; | ||
use sp_runtime::{ | ||
traits::{Block as BlockT, Header as HeaderT}, | ||
OpaqueExtrinsic, | ||
}; | ||
use sp_runtime::traits::{Block as BlockT, Header as HeaderT}; | ||
use std::{collections::VecDeque, fmt, vec::Vec}; | ||
|
||
/// Defines the amount of parentchain headers to keep. | ||
|
@@ -35,7 +32,6 @@ pub struct RelayState<Block: BlockT> { | |
pub current_validator_set_id: SetId, | ||
header_hashes: VecDeque<Block::Hash>, | ||
pub unjustified_headers: Vec<Block::Hash>, // Finalized headers without grandpa proof | ||
pub verify_tx_inclusion: Vec<OpaqueExtrinsic>, // Transactions sent by the relay | ||
pub scheduled_change: Option<ScheduledChangeAtBlock<Block::Header>>, // Scheduled Authorities change as indicated in the header's digest. | ||
} | ||
|
||
|
@@ -79,7 +75,6 @@ impl<Block: BlockT> RelayState<Block> { | |
current_validator_set: validator_set, | ||
current_validator_set_id: 0, | ||
unjustified_headers: Vec::new(), | ||
verify_tx_inclusion: Vec::new(), | ||
scheduled_change: None, | ||
} | ||
} | ||
|
@@ -95,11 +90,11 @@ impl<Block: BlockT> fmt::Debug for RelayState<Block> { | |
write!( | ||
f, | ||
"RelayInfo {{ last_finalized_block_header_number: {:?}, current_validator_set: {:?}, \ | ||
current_validator_set_id: {} amount of transaction in tx_inclusion_queue: {} }}", | ||
current_validator_set_id: {}, number of unjustified headers: {} }}", | ||
self.last_finalized_block_header.number(), | ||
self.current_validator_set, | ||
self.current_validator_set_id, | ||
self.verify_tx_inclusion.len() | ||
self.unjustified_headers.len() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It should always be 0, but I still want to log this, just in case. |
||
) | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This was the piece of code that didn't work and that caused a delay in block import.