mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-13 18:35:51 +00:00
Bump Substrate & versions (#747)
* Bump versions * Update for tipping treasury * Bump substrate * Fixes * Put send_consensus back in. * Fix test * Fixes * Fixes * Fix warning
This commit is contained in:
@@ -47,8 +47,8 @@ struct TestContext {
|
||||
|
||||
impl Context<Block> for TestContext {
|
||||
fn report_peer(&mut self, peer: PeerId, reputation: ReputationChange) {
|
||||
let reputation = self.reputations.get(&peer).map_or(reputation.value, |v| v + reputation.value);
|
||||
self.reputations.insert(peer.clone(), reputation);
|
||||
let reputation = self.reputations.get(&peer).map_or(reputation.value, |v| v + reputation.value);
|
||||
self.reputations.insert(peer.clone(), reputation);
|
||||
|
||||
match reputation {
|
||||
i if i < -100 => self.disabled.push(peer),
|
||||
@@ -57,6 +57,10 @@ impl Context<Block> for TestContext {
|
||||
}
|
||||
}
|
||||
|
||||
fn send_consensus(&mut self, _who: PeerId, _consensus: Vec<ConsensusMessage>) {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn send_chain_specific(&mut self, who: PeerId, message: Vec<u8>) {
|
||||
self.messages.push((who, message))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user