storj/pkg/pb
Cameron 4058c29ca4
filter duplicate node IPs (#1890)
* add last_ip field to dbx model node, generate dbx

* add last_ip to node proto, generate pb

* migrate

* resolve address in transport.DialNode, update lastIp in cache.UpdateAddress

* use net.SplitHostPort to isolate host address from port

* define DistinctIPs flag

* add test for GetIP

* select last_ip when querying for nodes

* if distinctIPs flag == true, query for nodes with distinct IPs

* some basic tests

* change last_ip to field 14 in proto

* remove comments

* check err

* change distinctIPs to distinctIP

* exclude IPs from newNodes in query for reputable nodes

* add index on last_ip

* only add to excludedIPs if flag is true

* test half new nodes returns distinct IPs

* fix alignment

* add test

* rework ip filter query, add retry logic, add switch for database driver

* add retry to SelectNewNodes

* change discovery intervals so IPs don't get overwritten

* remove TestGetIP

* edit updating node stats in test

* split exclude into nodeIDs and IPs

* separate non-distinct IP query into other function

* trigger checks

* remove else block
2019-05-22 16:06:27 -04:00
..
bandwidth_utils.go Storage node hash calculation on upload (#1347) 2019-02-23 11:46:07 +01:00
bandwidth.pb.go Faster agreement sender (#1507) 2019-03-19 14:56:59 +02:00
bandwidth.proto Faster agreement sender (#1507) 2019-03-19 14:56:59 +02:00
certificate.pb.go Add ability to view irreparable segments on satellite (#1448) 2019-03-15 16:21:52 -04:00
certificate.proto updates copyright 2018 to 2019 (#1133) 2019-01-24 15:15:10 -05:00
datarepair.pb.go Add ability to view irreparable segments on satellite (#1448) 2019-03-15 16:21:52 -04:00
datarepair.proto updates copyright 2018 to 2019 (#1133) 2019-01-24 15:15:10 -05:00
gen.go updates copyright 2018 to 2019 (#1133) 2019-01-24 15:15:10 -05:00
gogo.proto preparing for use of customtype gogo extension with NodeID type (#693) 2018-11-29 19:39:27 +01:00
inspector.pb.go Inspector draw routing table (#1732) 2019-04-22 11:34:11 +03:00
inspector.proto Inspector draw routing table (#1732) 2019-04-22 11:34:11 +03:00
meta.pb.go Add ability to view irreparable segments on satellite (#1448) 2019-03-15 16:21:52 -04:00
meta.proto updates copyright 2018 to 2019 (#1133) 2019-01-24 15:15:10 -05:00
metainfo.pb.go Add serial number type (#1508) 2019-03-18 15:08:24 +02:00
metainfo.proto Storage node and upload/download protocol refactor (#1422) 2019-03-18 12:55:06 +02:00
node.pb.go filter duplicate node IPs (#1890) 2019-05-22 16:06:27 -04:00
node.proto filter duplicate node IPs (#1890) 2019-05-22 16:06:27 -04:00
orders.pb.go storage node order sending (#1535) 2019-03-21 15:24:26 +02:00
orders.proto storage node order sending (#1535) 2019-03-21 15:24:26 +02:00
overlay.pb.go uplink share subcommand (#1924) 2019-05-14 12:15:12 -06:00
overlay.proto Add Version Information into KAD Network and SatelliteDB & Change Selection Process (#1648) 2019-04-10 08:04:24 +02:00
piecestore2.pb.go Add serial number type (#1508) 2019-03-18 15:08:24 +02:00
piecestore2.proto Storage node and upload/download protocol refactor (#1422) 2019-03-18 12:55:06 +02:00
piecestore.pb.go Delete psserver and unused mocks (#1605) 2019-03-29 16:40:06 +02:00
piecestore.proto Delete psserver and unused mocks (#1605) 2019-03-29 16:40:06 +02:00
pointerdb.pb.go Remove pointerdb.Server (#1609) 2019-03-30 13:21:49 +02:00
pointerdb.proto Remove pointerdb.Server (#1609) 2019-03-30 13:21:49 +02:00
scannerValuer.go Repair queue isolation level fix (#1466) 2019-03-14 17:12:47 -04:00
streams.pb.go Add serial number type (#1508) 2019-03-18 15:08:24 +02:00
streams.proto updates copyright 2018 to 2019 (#1133) 2019-01-24 15:15:10 -05:00
types.go Add serial number type (#1508) 2019-03-18 15:08:24 +02:00
utils.go Refactor pb.Node protobuf (#1785) 2019-04-22 12:07:50 +03:00
vouchers.pb.go define vouchers proto (#2026) 2019-05-22 15:15:59 -04:00
vouchers.proto define vouchers proto (#2026) 2019-05-22 15:15:59 -04:00