You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/llarp
Jason Rhinelander c5e787b8cb Oxend error ping + unfunded tracking
Currently (from a recent PR) we aren't pinging oxend if not active, but
that behaviour ended up being quite wrong because lokinet needs to ping
even when decommissioned or deregistered (when decommissioned we need
the ping to get commissioned again, and if not registered we need the
ping to get past the "lokinet isn't pinging" nag screen to prepare a
registration).

This considerably revises the pinging behaviour:

- We ping oxend *unless* there is a specific error with our connections
  (i.e. we *should* be establishing peer connections but don't have any)
- If we do have such an error, we send a new oxend "error" ping to
  report the error to oxend and get oxend to hold off on sending uptime
  proofs.

Along the way this also changes how we handle the current node state:
instead of just tracking deregistered/decommissioned, we now track three
states:

- LooksRegistered -- which means the SN is known to the network (but not
  necessarily active or fully staked)
- LooksFunded -- which means it is known *and* is fully funded, but not
  necessarily active
- LooksDecommissioned -- which means it is known, funded, and not
  currently active (which implies decommissioned).

The funded (or more precisely, unfunded) state is now tracked in
rc_lookup_handler in a "greenlist" -- i.e. new SNs that are so new (i.e.
"green") that they aren't even fully staked or active yet.
2 years ago
..
android standardize include format and pragma once 3 years ago
apple Add ring buffer sink to macos build 2 years ago
config Add binary file slurp/dump utility functions 2 years ago
consensus Apply some lipstick to llarp_buffer_t 2 years ago
constants disable lokinet-bootstrap on windows builds 2 years ago
crypto Add binary file slurp/dump utility functions 2 years ago
dht Log demotion 2 years ago
dns Windows compilation fix 2 years ago
ev disable lokinet-bootstrap on windows builds 2 years ago
exit llarp_buffer_t: rename badly named operator== 2 years ago
handlers Format fixes & fix warning in format script 2 years ago
iwp Replace logging with oxen-logger 2 years ago
link * add mockable network functions 2 years ago
linux restucture dbus parts 2 years ago
messages llarp_buffer_t: rename badly named operator== 2 years ago
net Add a net::ToString() to help stringify ipaddr_t 2 years ago
path changeset for windows port 2 years ago
peerstats Remove unused parameter names 2 years ago
quic Apply some lipstick to llarp_buffer_t 2 years ago
router Oxend error ping + unfunded tracking 2 years ago
routing llarp_buffer_t: rename badly named operator== 2 years ago
rpc Oxend error ping + unfunded tracking 2 years ago
service Add binary file slurp/dump utility functions 2 years ago
simulation standardize include format and pragma once 3 years ago
tooling hive fmt/spdlog updates 2 years ago
util Fallback bootstrap router build parameter 2 years ago
vpn limit route poker 2 years ago
win32 De-prioritize some windivert logging 2 years ago
CMakeLists.txt Add InterfaceInfo formatter 2 years ago
app.xml stray tag ;-; 6 years ago
bootstrap-fallbacks.cpp.in bake in bootstrap fallbacks at build time 2 years ago
bootstrap.cpp Fallback bootstrap router build parameter 2 years ago
bootstrap.hpp bake in bootstrap fallbacks at build time 2 years ago
context.cpp fix up log statements 2 years ago
endpoint_base.cpp add untracked file 3 years ago
endpoint_base.hpp refactor dns subsystem 2 years ago
lokinet_shared.cpp changeset for windows port 2 years ago
nodedb.cpp Merge pull request #1991 from jagerman/lokinet-vpn-cleanups 2 years ago
nodedb.hpp liblokinet additions: 3 years ago
pow.cpp Remote util::Printer and related cruft 2 years ago
pow.hpp Remote util::Printer and related cruft 2 years ago
profiling.cpp llarp/profiling: refactor to use oxenc producer/consumer 2 years ago
profiling.hpp llarp/profiling: refactor to use oxenc producer/consumer 2 years ago
router_contact.cpp Fallback bootstrap router build parameter 2 years ago
router_contact.hpp Fallback bootstrap router build parameter 2 years ago
router_id.cpp Crank oxen-mq to (1.2.)11; switch to oxen-encoding 2 years ago
router_id.hpp Replace logging with oxen-logger 2 years ago
router_version.cpp Cleanup: avoid pointless copy of `this` pointer 3 years ago
router_version.hpp Replace logging with oxen-logger 2 years ago