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

Coin Storage (automated UTXO tracking) #77

Merged
merged 11 commits into from
Jul 25, 2020
Merged

Conversation

patrick-ogrady
Copy link
Contributor

@patrick-ogrady patrick-ogrady commented Jul 25, 2020

Related PR: #68

To support automated testing of UTXO-based blockchains, we need to provide coin tracking support.

Changes

This PR introduces CoinStorage as a BlockWorker that automatically tracks coins that put either utxo_created or utxo_spent in the Operation.Metadata.

@coveralls
Copy link

coveralls commented Jul 25, 2020

Pull Request Test Coverage Report for Build 2087

  • 127 of 184 (69.02%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.2%) to 65.833%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/storage/block_storage.go 14 15 93.33%
internal/storage/coin_storage.go 113 169 66.86%
Files with Coverage Reduction New Missed Lines %
internal/storage/block_storage.go 1 62.37%
Totals Coverage Status
Change from base Build 2006: 0.2%
Covered Lines: 842
Relevant Lines: 1279

💛 - Coveralls

@patrick-ogrady patrick-ogrady changed the title Coin Storage Coin Storage (automated UTXO tracking) Jul 25, 2020
@patrick-ogrady patrick-ogrady merged commit c4723d7 into master Jul 25, 2020
@patrick-ogrady patrick-ogrady deleted the patrick/coin-storage branch July 25, 2020 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants