Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F/censusdb export #1168

Merged
merged 4 commits into from
Oct 27, 2023
Merged

F/censusdb export #1168

merged 4 commits into from
Oct 27, 2023

Conversation

p4u
Copy link
Member

@p4u p4u commented Oct 27, 2023

No description provided.

p4u added 2 commits October 27, 2023 10:53
A new mode, next to gateway, miner and seed, is introduced: census.
The census mode performs only the census API operation.
This is useful to separate the census API from the rest, since it
is the only one having to preserve a persistent storage.

In addition, a new import/export API endpoints are added to backup
the whole census database.

Finally small tweaks and minor improvements (specially with error checking).

Signed-off-by: p4u <[email protected]>
@p4u p4u force-pushed the f/censusdb_export branch from 4cab724 to e0a7f0c Compare October 27, 2023 10:20
@p4u p4u force-pushed the f/censusdb_export branch from dd3f0f1 to fb1a656 Compare October 27, 2023 20:00
@coveralls
Copy link

Pull Request Test Coverage Report for Build 6671693224

  • 343 of 513 (66.86%) changed or added relevant lines in 21 files are covered.
  • 7 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.3%) to 61.958%

Changes Missing Coverage Covered Lines Changed/Added Lines %
apiclient/account.go 0 1 0.0%
cmd/end2endtest/main.go 0 1 0.0%
config/config.go 0 1 0.0%
vocone/vocone.go 6 8 75.0%
cmd/end2endtest/helpers.go 3 6 50.0%
httprouter/apirest/apirest.go 13 16 81.25%
util/helpers.go 12 16 75.0%
apiclient/helpers.go 6 13 46.15%
api/api.go 9 23 39.13%
api/censuses.go 29 44 65.91%
Files with Coverage Reduction New Missed Lines %
cmd/node/main.go 1 61.66%
vochain/state/cache.go 2 61.54%
vochain/transaction/admin_tx.go 2 50.0%
vochain/transaction/transaction.go 2 59.02%
Totals Coverage Status
Change from base Build 6667787436: -0.3%
Covered Lines: 14192
Relevant Lines: 22906

💛 - Coveralls

@p4u p4u merged commit cd31281 into main Oct 27, 2023
@p4u p4u deleted the f/censusdb_export branch October 27, 2023 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants