Steven Allen
bbd28365c5
fix: don't prefer local ports from other addresses when dialing ( #1673 )
* fix: don't prefer local ports from other addresses when dialing
This address may already be in-use (on that other address) somewhere
else.
Thanks to @schomatis for figuring this out.
fixes #1611
* chore: document reuseport dialer logic
2 years ago
Jorropo
52b2eb4b85
crypto: add better support for alternative backends ( #1686 )
2 years ago
Dave Collins
8cf67ba1d0
crypto/secp256k1: Remove btcsuite intermediary. ( #1689 )
This updates the core/crypto/secp256k1 code to make use of the
dcrec/secp256k1/v4 module directly instead of using btcec/v2 which
itself is just a shim around dcrec/secp256k1/v4 anyway.
This has the benefit of removing the additional
github.com/btcsuite/btcd/chaincfg/chainhash dependency since
dcrec/secp256k1/v4 is its own module and does rely on it.
It also updates to the latest v4.1.0 release which implements direct key
generation and has some other nice optimizations that speed up signature
verification as compared to the v4.0.1 release.
2 years ago
Marco Munizaga
2f0d750298
Update resource manager README ( #1684 )
2 years ago
Marten Seemann
1ad0a50be6
Merge pull request #1683 from libp2p/merge-core
move go-libp2p-core here
2 years ago
Marco Munizaga
812a0c1573
rcmgr: make scaling changes more intuitive ( #1685 )
2 years ago
Marten Seemann
98f098e593
remove leftover license files in core/
2 years ago
Marten Seemann
d4e64c727f
stop using go-libp2p-testing peer ID generation functions
2 years ago
Marten Seemann
f401380ff1
move the resource manager mocks to this repo
2 years ago
Marten Seemann
4623690009
switch from github.com/libp2p/go-libp2p-core to core
2 years ago
Marten Seemann
ba15ef6de0
move go-libp2p-core to core
2 years ago
Marten Seemann
dba78d06f8
stop using the deprecated io/ioutil package ( #279 )
2 years ago
Marten Seemann
e0aff12a97
Merge pull request #1681 from libp2p/merge-eventbus
move go-eventbus here
2 years ago
Marten Seemann
40727b1b00
switch from github.com/libp2p/go-eventbus to p2p/host/eventbus
2 years ago
Marten Seemann
261ce3b4bd
move go-eventbus to p2p/host/eventbus
2 years ago
Marten Seemann
6631bfb011
basichost: remove usage of MultistreamServerMatcher in test ( #1680 )
2 years ago
Marten Seemann
e5728a2803
fix panic in TestSubFailFully ( #48 )
2 years ago
web3-bot
eff72c4afa
sync: update CI config files ( #1678 )
* bump go.mod to Go 1.18 and run go fix
* bump go.mod to Go 1.18 and run go fix
* bump go.mod to Go 1.18 and run go fix
* bump go.mod to Go 1.18 and run go fix
* run gofmt -s
* update .github/workflows/go-test.yml
* update .github/workflows/go-check.yml
* stop using the deprecated io/ioutil package
Co-authored-by: web3-bot <web3-bot@users.noreply.github.com>
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2 years ago
Marten Seemann
6b445e545b
Merge pull request #1677 from libp2p/merge-rcmgr
move go-libp2p-resource-manager to p2p/host/resource-manager
2 years ago
Jorropo
efbbaa3388
chore: preallocate slices with known final size ( #1679 )
Found with https://github.com/alexkohler/prealloc
2 years ago
Marten Seemann
0b79495ff1
use a mock clock in bandwidth tests ( #276 )
2 years ago
Marten Seemann
d57fea8b22
autorelay: fix flaky TestMaxAge ( #1676 )
2 years ago
Marten Seemann
6bd5e04960
switch from github.com/libp2p/go-libp2p-resource-manager to p2p/host/resource-manager
2 years ago
Marten Seemann
115858f161
move go-libp2p-resource-manager here
2 years ago
Marten Seemann
357ebfd50a
Merge pull request #1667 from libp2p/merge-peerstore
move go-libp2p-peerstore to p2p/host/peerstore
2 years ago
Marten Seemann
ab634d2ba1
switch from github.com/libp2p/go-libp2p-peerstore to p2p/host/peerstore
2 years ago
Marten Seemann
a9e8f79795
move go-libp2p-peerstore here
2 years ago
Mars Zuo
4acaa2a7e1
examples: remove ipfs components from echo ( #1672 )
* examples: Remove the module dependency of ipfs to reduce the interference of novice learning
* examples(echo): Recover the logging part
2 years ago
Steven Allen
f5e7cd1246
chore: update libp2p to v0.21 in examples ( #1674 )
2 years ago
Marten Seemann
6d53e63a5b
fix flaky TestGCDelay ( #206 )
2 years ago
Marten Seemann
9161f4a174
fix flaky EWMA test ( #205 )
2 years ago
Marco Munizaga
35871244b3
Merge pull request #79 from libp2p/marco/metrics-namespace
Add namespace to metrics
2 years ago
Marco Munizaga
c277824bef
Update readme
2 years ago
Marco Munizaga
06006c31f2
Add namespace to metrics
2 years ago
Marco Munizaga
1869ebc2b0
Merge pull request #76 from libp2p/marco/fix-null-pointer-err
Fix usage of make to reserve capacity, not values
2 years ago
Marco Munizaga
b60dc21e6c
Fix usage of make to reserve capacity, not values
2 years ago
Marco Munizaga
79dba76889
Merge pull request #75 from libp2p/marco/docs
Add package docs
2 years ago
Marco Munizaga
ab86eb7d24
Add example
2 years ago
Marco Munizaga
e218381bf6
Add section about allowlist
2 years ago
Marten Seemann
24b27cc71b
change the default key type to Ed25519 ( #1576 )
2 years ago
Marten Seemann
61f0605279
Merge pull request #1587 from libp2p/autorelay-polling
autorelay: poll for new candidates when needed
2 years ago
Sergey
a5e9114d2a
examples: fix unresponsive pubsub chat example ( #1652 )
2 years ago
Marten Seemann
caaded12ca
autorelay: simplify notification logic when using static relays
2 years ago
Marten Seemann
47bafccafc
autorelay: remove old candidates
2 years ago
Marten Seemann
15232057a8
autorelay: connect to other candidates when relay connection is lost
2 years ago
Marten Seemann
dc70eb1102
autorelay: contact all candidates before requesting new ones
2 years ago
Marten Seemann
f4f663945c
autorelay: only try to obtain a reservation once per peer, implement backoff
2 years ago
Marten Seemann
b53350b856
autorelay: remove ticker in favor of a dynamic timer
2 years ago
Marten Seemann
c7ddba222a
autorelay: make the maximum candidate age configurable
2 years ago
Marten Seemann
74eb79401e
autorelay: poll for new candidates, when needed
2 years ago