4058c29ca4
* 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 |
||
---|---|---|
.. | ||
bandwidth_utils.go | ||
bandwidth.pb.go | ||
bandwidth.proto | ||
certificate.pb.go | ||
certificate.proto | ||
datarepair.pb.go | ||
datarepair.proto | ||
gen.go | ||
gogo.proto | ||
inspector.pb.go | ||
inspector.proto | ||
meta.pb.go | ||
meta.proto | ||
metainfo.pb.go | ||
metainfo.proto | ||
node.pb.go | ||
node.proto | ||
orders.pb.go | ||
orders.proto | ||
overlay.pb.go | ||
overlay.proto | ||
piecestore2.pb.go | ||
piecestore2.proto | ||
piecestore.pb.go | ||
piecestore.proto | ||
pointerdb.pb.go | ||
pointerdb.proto | ||
scannerValuer.go | ||
streams.pb.go | ||
streams.proto | ||
types.go | ||
utils.go | ||
vouchers.pb.go | ||
vouchers.proto |