Adin Schmahmann
3e24f352aa
provider record keys can be an arbitrary byte array less than 80 bytes instead of only a multihash
2019-12-19 12:00:51 -05:00
Adin Schmahmann
a4b38eebee
feat(dht): provider records use multihashes instead of CIDs
2019-12-19 12:00:51 -05:00
Steven Allen
52747fc1f0
feat: allow disabling value and provider storage/messages
...
fixes #274
2019-12-05 19:11:46 -05:00
Steven Allen
0d48254082
chore(dep): update
...
Update deps:
* Switch to multiformats/go-base32
* Regenerate protobuf decoding code
2019-12-02 13:05:53 -05:00
Aarsh Shah
7a39667d70
make max record age configurable
2019-11-15 10:54:09 +08:00
Raúl Kripalani
fed99afe6e
Make routing table bucket size configurable ( #396 )
2019-10-04 22:12:00 +09:00
Aarsh Shah
36578e2be3
Striped locks for atomic Dht updates ( #374 )
...
Implement striped locking for datastore puts.
2019-07-22 20:47:45 -07:00
Raúl Kripalani
31765355df
migrate to consolidated types. ( #344 )
2019-05-26 23:33:15 +01:00
Matt Joiner
86d78dc072
golangci-lint run -D errcheck ( #298 )
2019-03-14 11:07:15 +11:00
Matt Joiner
185fb6eb4d
Alter some logging
2019-02-15 15:14:43 +11:00
Raúl Kripalani
120a585ebf
Revert "Test go mod in travis and use major versioning in import paths ( #236 )"
...
This reverts commit 7e68ac3c60c15243c7d2e622b91aed92245a2677.
2019-02-12 14:12:53 +00:00
Adrian Lanzafame
7e68ac3c60
Test go mod in travis and use major versioning in import paths ( #236 )
2019-02-12 17:38:06 +11:00
Matt Joiner
8b37385468
Rename log to logger
2019-02-03 13:14:35 +11:00
Chen Shuaimin
a579397e97
1. Remove Pretty()
because go-log now supports beautification of peer ID.
...
2. Switch `LogKV()` to `SetTag`.
3. Use a smarter way to log errors.
2018-08-25 10:08:45 +08:00
Chen Shuaimin
174c565eac
add ctx argument
2018-08-23 15:12:36 +08:00
Chen Shuaimin
7f78b9ed17
Adjust some indentations
2018-08-23 14:49:23 +08:00
Chen Shuaimin
6eea7747a0
Fixed some key-value pairs missing errors in the log.
2018-08-23 14:46:07 +08:00
Steven Allen
366bfd4b1d
update to new datastore interface
2018-08-13 13:57:47 -07:00
Steven Allen
4d76fd28ed
upgrade protobuf and switch to bytes keys
...
fixes #177
2018-08-07 18:50:04 -07:00
Steven Allen
2c8f3872f3
return info for connected peers in handleFindPeer
...
This way, users who are actually trying to find a peer (not just nodes near a
key in the DHT) can find that peer, even if they aren't a DHT server and/or
aren't in anyone's routing table.
fixes #161
2018-06-14 19:51:03 -07:00
Steven Allen
277f253733
fix getLocal error handling
2018-06-13 19:42:26 -07:00
Steven Allen
8dd8174811
upgrade local datastore warnings to errors
2018-06-13 16:32:20 -07:00
Steven Allen
3befc403d7
require that the validator be explicitly passed in
...
Note: this does mean that the DHT won't work with peer keys by default and that
the constructor signature changes. Given all the changes that'll come with the
libp2p refactor, I don't feel too bad about this.
2018-05-31 17:54:19 -07:00
Michael Muré
2026fcb558
document and clean small things
2018-04-01 12:38:15 +02:00
Dirk McCormick
bdf2cdc986
Disallow overwriting new records with older records on DHT PUT
2018-03-05 15:13:12 -05:00
Dirk McCormick
a9c59f3f15
Remove record signature verification
2018-02-07 14:52:15 -08:00
Steven Allen
1cb007e8d3
ensure we don't store arbitrary data
...
Explicitly clean DHT records before storing them.
2018-01-09 14:42:10 -08:00
ForrestWeston
24c9006902
Set errors on dht event logs
...
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
2017-12-11 14:00:21 -08:00
Steven Allen
491afc8e27
optimize allocations
...
Try to preallocate slices up-front instead of repeatedly reallocating.
2017-12-05 15:46:24 -08:00
Jeromy
6894f33507
update dependencies after package extraction funtime
2016-10-05 12:34:28 -07:00
Jeromy Johnson
9106574a54
Merge pull request #15 from libp2p/feat/hander/err-to-warn
...
dht: degrade 'no addresses' from error to warning
2016-10-03 17:20:23 -07:00
Jeromy
e00b3ca0a4
use stdlib context and clean up deps
2016-09-30 10:24:03 -07:00
Jeromy
c372d79e42
switch to strings and cids instead of keys
2016-09-30 10:13:57 -07:00
Jakub Sztandera
4cfe36b787
dht: degrade 'no addresses' from error to warning
...
to reduce confusion as it is a bug with unknown source but end users
don't have to see it as it isn't critical
2016-09-28 12:54:15 +02:00
Jeromy
d03fffba86
dht: protect against a panic in case record on pbmessage is nil
...
From ipfs/go-ipfs#8f362d2b1500809cbae2ee08c2b42a6f226a10b8
2016-09-13 13:14:39 -07:00
George Antoniadis
9b3d1b5661
Bump deps, revert protobuf
2016-09-03 20:35:59 +01:00
George Antoniadis
30d43d22e0
Fix dependencies
2016-09-02 20:21:23 +01:00
George Antoniadis
5f3e63aa46
Undo gx rewrites and add gx package.json
2016-08-21 17:18:58 +01:00
Jeromy
1bd98f05f4
use batching datastore for providers storage
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-26 10:48:25 -07:00
Jeromy
29c36b20d8
update go-datastore changes 0.1.2
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-01 22:40:57 -07:00
Jeromy
7c91e7bdd1
encode keys to datastore with base32 standard encoding
...
Fixes #2601
Also bump version to 0.4.3-dev
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-01 14:15:06 -07:00
Jakub Sztandera
22af8d1151
Update go-log in whole dependency tree ( #2898 )
...
* Update golog in go-ipfs
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update go-libp2p for go-log
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update go-libp2p-secio for go-log
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update go-libp2p-crypto for go-log
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update go-libp2p-peer for go-log
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Import peersore, it wasn't imported
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update peerstore
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update peer
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update secio
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update go-libp2p
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-24 09:38:07 -07:00
Richard Littauer
2203d3b1fe
Decapitalized log.Debug messages
...
According to golang standards, these should not be capitalized nor having a trailing period, AFAIK.
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-06-15 08:56:34 +01:00
Jakub Sztandera
3ac45d1425
Import go-datastore to gx
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 08:47:15 +02:00
Jakub Sztandera
441d33addf
Remove go-datastore from Godeps
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 08:23:43 +02:00
Jeromy
63b6db0589
pull in libp2p updates with utp fixes
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-11 10:33:44 -07:00
Jeromy
5f777f323b
update libp2p to v3.3.1
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-01 16:45:46 -07:00
Jeromy
26beb1f3d0
update go-libp2p 3.2.2, nil maddr fixes
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-17 10:23:10 -07:00
Jeromy
b9f86c8c87
update libp2p with go-multiaddr and go-stream-muxer updates
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-10 16:06:28 -07:00
Richard Littauer
761f5c277e
Capitalized NOTE
, first letter of following word
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-29 16:57:19 -04:00