-
Notifications
You must be signed in to change notification settings - Fork 157
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
chore: Upgrade libp2p and bitswap #2154
Conversation
46fee9e
to
0fa8772
Compare
0fa8772
to
15cda39
Compare
a3620db
to
fa66fa1
Compare
ae20d1b
to
29f30a2
Compare
d8cc734
to
8224ed9
Compare
This branch work for connecting to calibnet but I'm having difficulties with mainnet. Seeing a lot of this error:
|
Hmm, the DO droplet is too slow to match up to the most recent tipset. But it hasn't failed so far. Just a lots of notices that seem to be harmless. |
@hanabi1224 Can we do something about the error messages and warnings? I see lots of these for every validated tipset:
|
Sure, let me confirm the error message does not mean Update:
|
I'm completely synced to mainnet and everything appears to be in order! Nice! |
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.
Works great. But let's use protobuf-compiler
from Ubuntu and let's update the build instructions for ubuntu and fedora.
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.
In general, looks quite solid!
self.put_keyed(block.cid(), block.data()) | ||
} | ||
|
||
fn missing_blocks(&mut self, cid: &Cid) -> anyhow::Result<Vec<Cid>> { |
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 extract this method? Seems it will be exactly the same for all structs implementing Store
.
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.
Good suggestion, fixed
} | ||
|
||
#[allow(clippy::too_many_arguments)] | ||
async fn handle_forest_behaviour_event<DB, P: StoreParams>( |
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.
It would be nice to refactor such oversized methods so there's a single match
calling methods. 300 LoC for a method isn't ideal.
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 have created #2220 to track this refactoring
Summary of changes
Changes introduced in this pull request:
libp2p
to0.49.0
libp2p-bitswap
to0.24
bitswap
logicprotoc
in CI env andDockerfile
which is required bylibp2p 0.47+
It reduces build time by not buildingprotoc
from source)tiny-cid
Manual test on calibnetcalibnet sync check
CI job passesReference issue to close (if applicable)
Closes #1924 #1920
Other information and links