-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* vochain: add StateSync* and SnapshotInterval flags * if RPCServers not specified, fallback to Seeds * only do Snapshots when node has an Indexer enabled state/snapshot: refactor the whole Snapshot feature into a new package snapshot * merge {Add,dump,End}Tree into a single DumpTree * refactor Trees into generic Blobs concept * implement indexer Export/Import * Import,ExportNoStateDB now uses NoState(withTxLock=true), grabbing lock once indexer: * add ExportBackupAsBytes() deduping code from api.chainIndexerExportHandler() * refactor RestoreBackup to use a reader instead of a file * handle errors of IterateVotes * if dbPath exists, always startDB and ignore ExpectBackupRestore statedb: implement statedb.Import method tests: * state: remove TestTreeExportImport, needs rewriting from scratch * testsuite: add test_statesync, uses gatewaySync to test State+NoState+Indexer Export/Import * testsuite: check for CONSENSUS FAILURE in logs dockerfiles: open port 26657 for CometBFT RPC used by StateSync
- Loading branch information
Showing
28 changed files
with
1,288 additions
and
628 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
VOCDONI_DATADIR=/app/run | ||
VOCDONI_MODE=gateway | ||
VOCDONI_LOGLEVEL=debug | ||
VOCDONI_VOCHAIN_LOGLEVEL=info | ||
VOCDONI_DEV=True | ||
VOCDONI_ENABLEAPI=True | ||
VOCDONI_ENABLERPC=True | ||
VOCDONI_ENABLEFAUCETWITHAMOUNT=100000 | ||
VOCDONI_VOCHAIN_PUBLICADDR=gatewaySync:26656 | ||
VOCDONI_VOCHAIN_SEEDS=3c3765494e758ae7baccb1f5b0661755302ddc47@seed:26656 | ||
VOCDONI_VOCHAIN_GENESIS=/app/misc/genesis.json | ||
VOCDONI_VOCHAIN_NOWAITSYNC=True | ||
VOCDONI_METRICS_ENABLED=True | ||
VOCDONI_METRICS_REFRESHINTERVAL=5 | ||
VOCDONI_CHAIN=dev | ||
VOCDONI_SIGNINGKEY=f50be23d315a2e6c1c30e0f1412b86d6ca9f2b318f1d243e35bc72d44c8b2f90 | ||
VOCDONI_ARCHIVEURL=none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.