-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
feat(core): add libp2p resource manager #8735
feat(core): add libp2p resource manager #8735
Conversation
@marten-seemann Initial take on |
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.
With my limited knowledge of the code base, this looks good to me.
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.
just like lotus, looking fine.
Were you able to test the command (actually running it)? Is it working as expected? If the answer is yes I'll proceed to plumb the After that, I'll need you to define in the original thread where exactly is this command going to live, and if it should have its own API in |
Everything works as expected, except for the peer command. It either fails to parse a (valid) peer ID (e.g. |
Yeah, it's doing that for the CIDv0 addresses (
I'm not seeing that in local test: Test output
|
Sorry, I should've been more specific: the peer output in The decode might be the issue of |
Yes, we're using the second, should we switch? |
Confirmed, will look into it, though it's a pretty straightforward call to the library's |
@vyzo, have you tried this? |
@marten-seemann Mind giving the Something like
|
we dont have legacy peers in lotus so it worked all dandy when i tried it. |
It should be |
@schomatis I tried this, and it can't find the file:
|
caba218
to
c3be8e9
Compare
@marten-seemann Did the read limit command
before
not generate any output? Are you running both commands in the same CLI/daemon? |
c3be8e9
to
3bb2ecf
Compare
@schomatis It works now! Thank you! Can you rebase this on top of the (updated) update-libp2p-v018 branch? |
da21179
to
4594422
Compare
@marten-seemann Rebased. Left some TODOs in the PR description which I can't resolve myself. |
Nothing more for me to do at the moment so I'll remove my assignment from this. |
6ddf5bf
to
0c9ddba
Compare
@marten-seemann is going to merge this into the update-libp2p-v018 branch once the tests in #8680 pass. |
4594422
to
a89390d
Compare
To be clear for anyone watching, this remaining work is now happening in #8680 |
Built on top of #8680.
Commands:
TODO:
interface-go-ipfs-core
.limit.json
config file going to live: hardcoded in the repo root or configured throughgo-ipfs-config
.ViewPeer
is working.Closes #8722.