Steven Allen
4a4c4886f7
fix: assert that peer record is accepted in test
...
This test is flaking on windows when using the leveldb datastore.
Hopefully, this extra check will help us narrow it down.
2021-07-20 17:17:41 -07:00
Steven Allen
eef7cecd29
Merge pull request #135 from libp2p/feat/remove-non-gc-removal
...
Only remove records during GC
2021-07-16 20:43:52 -07:00
Aarsh Shah
739d9b7c52
remove removal that is not required
2021-07-16 20:03:28 -07:00
Steven Allen
1907cca69f
Merge pull request #160 from libp2p/web3-bot/sync
...
sync: update CI config files
2021-07-16 20:02:00 -07:00
Steven Allen
0b07f55731
test: make tests less timing dependent
2021-07-16 19:45:29 -07:00
Steven Allen
501bfa8154
chore: update libp2p-core
...
ensures that peer record sequence numbers are atomic
2021-07-16 19:45:29 -07:00
Steven Allen
99836f05e7
test: use leveldb instead of badger
...
Badger has issues on 32bit operating systems.
2021-07-16 19:45:29 -07:00
web3-bot
8fdf7888b2
add .github/workflows/go-check.yml
2021-07-16 19:45:29 -07:00
web3-bot
96cc3e6c4f
add .github/workflows/go-test.yml
2021-07-16 19:45:29 -07:00
web3-bot
c3436ed15f
add .github/workflows/automerge.yml
2021-07-16 19:45:29 -07:00
web3-bot
031eb15a28
disable Travis
2021-07-16 19:45:29 -07:00
Steven Allen
87136c9300
Merge pull request #161 from libp2p/fix/races
...
fix: fix some race conditions in the ds address book
2021-07-16 19:44:59 -07:00
Steven Allen
2c64af26c3
fix: log sequence ds error
2021-07-16 15:40:47 -07:00
Steven Allen
35bbffb1c5
fix: fix some race conditions in the ds address book
2021-07-16 15:37:49 -07:00
Steven Allen
68d396b762
Merge pull request #159 from libp2p/fix/lints
...
address lints and test failures
2021-07-16 10:38:44 -07:00
Steven Allen
4808543c09
fix: address lints
2021-07-16 10:38:05 -07:00
Steven Allen
90f363555f
chore: update to latest go error handling
...
We no longer need the "errors" package.
2021-07-16 10:38:00 -07:00
Steven Allen
e161a361fc
chore: update deps
2021-07-15 17:29:05 -07:00
Steven Allen
9aa80d7506
fix: avoid copying locks/waitgroups
2021-07-15 17:16:22 -07:00
Marten Seemann
3b39a0abfa
Merge pull request #158 from libp2p/remove-go-multiaddr-net
...
stop using the deprecated go-multiaddr-net package
2021-07-01 19:33:17 -07:00
Marten Seemann
a5108ed514
stop using the deprecated go-multiaddr-net package
2021-07-01 19:31:17 -07:00
Steven Allen
b4ad10c61b
Merge pull request #157 from libp2p/fix/delete-addrs-update-zero
...
fix: delete addrs when "updating" them to zero
2021-04-29 20:35:14 -07:00
Steven Allen
cce0adbd0a
fix: delete addrs when "updating" them to zero
...
1. Fix expiration check to check "not before" instead of after.
Otherwise, something that is expiring "now" won't count as expired. The
datastore-backed peerstore already had the correct logic.
2. Short-circuit updating the TTL to 0 and just delete the records.
Note: this wasn't causing problems on Linux (likely due to monotonic
clocks?) but was causing go-libp2p tests to fail reliably on Windows.
2021-04-29 17:20:27 -07:00
Steven Allen
74ed1a9974
Merge pull request #155 from libp2p/fix/peer-record-bugs
...
fix two bugs in signed address handling
2020-06-08 08:24:40 -07:00
Steven Allen
095da5537d
fix: make processing signed address records atomic
...
Previously, two calls to ConsumePeerRecord could interleave and cause us to keep
_old_ addresses with a _new_ record.
2020-06-05 18:36:59 -07:00
Steven Allen
56ebb42d5f
fix: always update address TTLs in a signed peer record
...
Previously, we'd only set the TTL if the addresses were new.
2020-06-05 18:36:56 -07:00
vyzo
9827ee0860
Merge pull request #154 from jsign/jsign/fixraces
...
addrbook: fix races
2020-06-05 21:20:41 +03:00
Ignacio Hagopian
1542834878
fix other race
...
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
2020-06-05 15:17:36 -03:00
Ignacio Hagopian
33ea692817
fix race
...
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
2020-06-05 15:02:43 -03:00
Aarsh Shah
ce24bfc4f9
Merge pull request #147 from libp2p/feat/supports-no-alloc
...
Implement the FirstSupportedProtocol API.
2020-05-14 16:44:42 +05:30
Aarsh Shah
21a1c143cc
upgrade core version
2020-05-14 16:22:42 +05:30
Aarsh Shah
dd0775df6d
changes for the new interface
2020-05-11 13:07:08 +05:30
Aarsh Shah
7a58f873f4
peer supports any protocol
2020-05-08 12:10:14 +05:30
Steven Allen
b1f58c0365
Merge pull request #139 from libp2p/chore/update-deps
...
chore: update deps and clean go.sum
2020-04-06 13:05:02 -07:00
Steven Allen
fee139fdf2
chore: update deps and clean go.sum
2020-04-06 13:03:32 -07:00
Steven Allen
7cca27a677
Merge pull request #136 from libp2p/dependabot/go_modules/github.com/ipfs/go-ds-badger-0.2.3
...
Bump github.com/ipfs/go-ds-badger from 0.2.2 to 0.2.3
2020-04-06 13:02:06 -07:00
Steven Allen
6bf43ff44c
Merge pull request #137 from libp2p/dependabot/go_modules/github.com/libp2p/go-libp2p-core-0.5.1
...
Bump github.com/libp2p/go-libp2p-core from 0.4.0 to 0.5.1
2020-04-06 13:01:59 -07:00
Steven Allen
a48d220280
Merge pull request #138 from libp2p/dependabot/go_modules/github.com/multiformats/go-multiaddr-net-0.1.4
...
Bump github.com/multiformats/go-multiaddr-net from 0.1.2 to 0.1.4
2020-04-06 13:01:51 -07:00
Steven Allen
4e9932be2b
Merge pull request #88 from libp2p/fix/87
...
fix: handle nil peer IDs
2020-04-05 23:11:47 -07:00
Steven Allen
785ee8c8fd
fix: handle nil peer IDs
...
Feels like Java all over again.
fixes #87
2020-04-05 23:05:41 -07:00
dependabot-preview[bot]
51f8783645
Bump github.com/multiformats/go-multiaddr-net from 0.1.2 to 0.1.4
...
Bumps [github.com/multiformats/go-multiaddr-net](https://github.com/multiformats/go-multiaddr-net ) from 0.1.2 to 0.1.4.
- [Release notes](https://github.com/multiformats/go-multiaddr-net/releases )
- [Commits](https://github.com/multiformats/go-multiaddr-net/compare/v0.1.2...v0.1.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-03 11:18:50 +00:00
dependabot-preview[bot]
bdc0507554
Bump github.com/libp2p/go-libp2p-core from 0.4.0 to 0.5.1
...
Bumps [github.com/libp2p/go-libp2p-core](https://github.com/libp2p/go-libp2p-core ) from 0.4.0 to 0.5.1.
- [Release notes](https://github.com/libp2p/go-libp2p-core/releases )
- [Commits](https://github.com/libp2p/go-libp2p-core/compare/v0.4.0...v0.5.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-03 11:18:28 +00:00
dependabot-preview[bot]
4ad4a35c51
Bump github.com/ipfs/go-ds-badger from 0.2.2 to 0.2.3
...
Bumps [github.com/ipfs/go-ds-badger](https://github.com/ipfs/go-ds-badger ) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/ipfs/go-ds-badger/releases )
- [Commits](https://github.com/ipfs/go-ds-badger/compare/v0.2.2...v0.2.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-02 11:21:40 +00:00
Steven Allen
416a1c1aa9
Merge pull request #134 from libp2p/dependabot/go_modules/github.com/ipfs/go-ds-badger-0.2.2
...
Bump github.com/ipfs/go-ds-badger from 0.2.1 to 0.2.2
2020-03-30 13:48:30 -07:00
dependabot-preview[bot]
873b1e8181
Bump github.com/ipfs/go-ds-badger from 0.2.1 to 0.2.2
...
Bumps [github.com/ipfs/go-ds-badger](https://github.com/ipfs/go-ds-badger ) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/ipfs/go-ds-badger/releases )
- [Commits](https://github.com/ipfs/go-ds-badger/compare/v0.2.1...v0.2.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-30 11:20:44 +00:00
Steven Allen
e38f05b684
Merge pull request #132 from libp2p/dependabot/go_modules/github.com/ipfs/go-log-1.0.3
...
Bump github.com/ipfs/go-log from 1.0.2 to 1.0.3
2020-03-29 23:58:31 -07:00
Steven Allen
1019086e7d
Merge pull request #133 from libp2p/feat/fix-addrs-bug
...
Fix memory store signed peer record bug
2020-03-29 19:27:18 -07:00
Aarsh Shah
cdec762f40
fix add addrs bug
2020-03-28 16:17:10 +05:30
Aarsh Shah
9868efd05f
fix memory store signed peer record bug
2020-03-27 16:18:53 +05:30
dependabot-preview[bot]
1ecbdd978f
Bump github.com/ipfs/go-log from 1.0.2 to 1.0.3
...
Bumps [github.com/ipfs/go-log](https://github.com/ipfs/go-log ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/ipfs/go-log/releases )
- [Commits](https://github.com/ipfs/go-log/compare/v1.0.2...v1.0.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-25 11:20:26 +00:00