]> git.bitcoin.ninja Git - rapid-gossip-sync-server/commit
Dynamically adjust snapshot scopes.
authorArik Sosman <git@arik.io>
Fri, 1 Sep 2023 21:42:40 +0000 (14:42 -0700)
committerArik Sosman <git@arik.io>
Fri, 1 Sep 2023 21:52:57 +0000 (14:52 -0700)
commitbbe9236263a2d5bef2ad674f51d8e8a758dbe30a
treed4573ad2bfee1fe1f17a899c4b0fa4cd5554b835
parentf21d676279519341177f6f4fbc4273a6c750e886
Dynamically adjust snapshot scopes.

Previously, we had hard-coded factors for the default snapshot
generation interval, which also served as the minimum snapshot
scope. In this commit, we substitute that with a doubling
mechanism that stops once it reaches or exceeds the
21-day-mark, which can be configured using an additional flag.
src/config.rs
src/snapshot.rs