Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
d9edf82
Begin to add a test parachain
bkchr Oct 16, 2019
c7e229b
Make basic collation working
bkchr Oct 18, 2019
982b2a7
Make collator generate the correct block data
bkchr Oct 19, 2019
e7d8a2e
Fix inconsistent head_data (#18)
gui1117 Oct 21, 2019
ffb042c
Fix compilation errors after update
bkchr Oct 21, 2019
e458f20
Make most tests compile again
bkchr Oct 22, 2019
451d92a
Fix proof generation and make validate block return the correct result
bkchr Oct 22, 2019
d3ed1df
Implement block import
bkchr Oct 22, 2019
712a2a1
Fix inconsistent head_data (#18)
gui1117 Oct 21, 2019
0edc170
The parachain does not need any bootnodes for now
bkchr Oct 22, 2019
535be44
Add instructions to the README
bkchr Oct 22, 2019
05249ca
code moved
gui1117 Oct 24, 2019
280c89f
doc
gui1117 Oct 24, 2019
fb44a0e
refactor
gui1117 Oct 24, 2019
83d2425
copyright
gui1117 Oct 24, 2019
b1b0eaa
retry on gitlab system failures
TriplEight Oct 30, 2019
debf9a2
Update .gitlab-ci.yml
bkchr Oct 31, 2019
b1df91d
Merge pull request #21 from paritytech/retry_on_gitlab_system_failures
bkchr Oct 31, 2019
6cf27d9
use gossip message directly
gui1117 Oct 31, 2019
647d376
improve doc
gui1117 Oct 31, 2019
997b02d
allow empty data
gui1117 Oct 31, 2019
74cb796
Fixes tests
bkchr Nov 6, 2019
d0f855b
Merge pull request #22 from paritytech/bkchr-test-parachain
bkchr Nov 6, 2019
76d3046
Merge branch 'master' into gui-candidate-justification
bkchr Nov 6, 2019
e025dab
Merge pull request #17 from paritytech/gui-candidate-justification
bkchr Nov 6, 2019
84f5229
Clarify instructions for registering a parachain.
JoshOrndorff Nov 29, 2019
f9a7199
Merge pull request #29 from paritytech/joshy-clarify-instructions
bkchr Nov 30, 2019
7052a10
CI optomizations
TriplEight Dec 6, 2019
e115da2
Merge pull request #32 from paritytech/CI_optimizations
bkchr Dec 8, 2019
1bcb147
Make everything compile and fix tests
bkchr Jan 14, 2020
307fbdc
Overwrite more storage functions
bkchr Jan 15, 2020
dcde10c
Merge pull request #33 from paritytech/bkchr-make-it-work-again
bkchr Jan 15, 2020
f0baba9
Don't finalize the same block multiple times
bkchr Jan 15, 2020
6a04f4d
Merge pull request #39 from paritytech/bkchr-safety-violation
bkchr Jan 16, 2020
765a389
Update Substrate & Polkadot (#41)
bkchr Jan 16, 2020
4d47510
`async`ify the big collator future (#40)
expenses Jan 16, 2020
4b2cdb6
Update the README (#45)
bkchr Jan 20, 2020
704b25d
Fix missing keystore config in test collator (#46)
bkchr Jan 21, 2020
3f4c51f
Update chainspec to make the test parachain work again (#47)
bkchr Jan 22, 2020
a7d2700
Splitting relaychain and parachain command-line arguments (#42)
cecton Jan 28, 2020
7fb8b2f
Update substrate async api (#49)
cecton Feb 1, 2020
539f83e
Minor fix to readme instructions (#51)
JoshOrndorff Feb 3, 2020
0efd15c
Update substrate and polkadot (#50)
cecton Feb 3, 2020
2941569
Update CLI (#53)
cecton Feb 10, 2020
e880fe4
Update polkadot & substrate (#55)
cecton Feb 10, 2020
ea65c31
Disable mdns polkadot (#58)
cecton Feb 11, 2020
0c3fb0d
Update Polkadot chain-spec and switch to new wasm builder (#60)
bkchr Feb 14, 2020
0d83b55
Update README to fix the startup (#61)
bkchr Feb 14, 2020
cd1eb37
Remove `unwrap_trie_error` and replace with `expect` (#64)
bkchr Feb 18, 2020
e13511b
Fix: relay chain arguments need a first argument "command" (#65)
cecton Feb 18, 2020
3ab7998
Update README.md (#66)
bkchr Feb 20, 2020
28ad999
Automatic Example Collator (#67)
coriolinus Feb 21, 2020
4181762
Update Polkadot/Substrate (#68)
bkchr Feb 24, 2020
f8631d8
Run polkadot using future (#63)
cecton Feb 27, 2020
f29b948
Add Github Action for Matrix release bot (#69)
Stefie Mar 3, 2020
dd5b344
Update polkadot and substrate (#71)
cecton Mar 11, 2020
5168bf8
Adds some highlevel docs for Cumulus (#54)
bkchr Mar 13, 2020
461b971
Update to latest Polkadot & Substrate (#75)
bkchr Apr 6, 2020
2f44941
master.into()
JoshOrndorff Apr 15, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
allow empty data
  • Loading branch information
gui1117 committed Oct 31, 2019
commit 997b02d8e6eb667248f73e028ddc76ac0bb59e2f
7 changes: 7 additions & 0 deletions network/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ use std::marker::PhantomData;
/// valid parachain-block candidate.
/// Data encoding is just `GossipMessage`, the relay-chain validator candidate statement message is
/// the justification.
///
/// Note: if no justification is provided the annouce is considered valid.
pub struct JustifiedBlockAnnounceValidator<B> {
authorities: Vec<ValidatorId>,
phantom: PhantomData<B>,
Expand All @@ -53,6 +55,11 @@ impl<B: BlockT> BlockAnnounceValidator<B> for JustifiedBlockAnnounceValidator<B>
fn validate(&mut self, header: &B::Header, mut data: &[u8])
-> Result<Validation, Box<dyn std::error::Error + Send>>
{
// If no data is provided the announce is valid.
if data.is_empty() {
return Ok(Validation::Success)
}

// Check data is a gossip message.
let gossip_message = GossipMessage::decode(&mut data)
.map_err(|_| Box::new(ClientError::BadJustification(
Expand Down