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

Add pre transactions balance to the log #223

Merged
merged 14 commits into from
Jun 14, 2022

Conversation

gfyrag
Copy link
Contributor

@gfyrag gfyrag commented Jun 9, 2022

No description provided.

@gfyrag gfyrag requested a review from a team as a code owner June 9, 2022 09:26
@gfyrag gfyrag requested review from reslene and removed request for a team June 9, 2022 09:26
@codecov
Copy link

codecov bot commented Jun 9, 2022

Codecov Report

Merging #223 (b11fa82) into main (993d26b) will increase coverage by 1.11%.
The diff coverage is 87.72%.

@@            Coverage Diff             @@
##             main     #223      +/-   ##
==========================================
+ Coverage   66.05%   67.16%   +1.11%     
==========================================
  Files          71       72       +1     
  Lines        3591     3816     +225     
==========================================
+ Hits         2372     2563     +191     
- Misses        976     1001      +25     
- Partials      243      252       +9     
Impacted Files Coverage Δ
pkg/core/transaction.go 66.66% <ø> (ø)
pkg/storage/storage.go 58.73% <33.33%> (-1.93%) ⬇️
pkg/opentelemetry/opentelemetrytraces/storage.go 49.65% <42.85%> (-2.86%) ⬇️
pkg/core/volumes.go 86.66% <86.66%> (ø)
pkg/ledger/ledger.go 76.96% <87.30%> (-0.71%) ⬇️
pkg/storage/sqlstorage/aggregations.go 83.82% <88.88%> (+0.49%) ⬆️
pkg/ledger/volume_agg.go 97.26% <97.26%> (ø)
pkg/bus/monitor.go 74.46% <100.00%> (+1.13%) ⬆️
pkg/ledger/monitor.go 100.00% <100.00%> (ø)
pkg/storage/sqlstorage/transactions.go 82.03% <100.00%> (+0.60%) ⬆️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8bfe934...b11fa82. Read the comment docs.

@gfyrag gfyrag force-pushed the feature/num-495-add-pre-transactions-balance-to-the-log branch 2 times, most recently from 6ab3a8f to e775b93 Compare June 9, 2022 10:26
@gfyrag gfyrag force-pushed the feature/num-495-add-pre-transactions-balance-to-the-log branch from e775b93 to 50987cf Compare June 9, 2022 19:18
pkg/ledger/ledger.go Outdated Show resolved Hide resolved
pkg/ledger/ledger.go Show resolved Hide resolved
aggregatedVolumes := core.AggregatedVolumes{}
volumeAggregator := NewVolumeAggregator(l.store)

generatedTxs := make([]core.Transaction, 0)
accounts := make(map[string]core.Account, 0)
logs := make([]core.Log, 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just as the transactions were renamed to generatedTxs, I would also rename it to generatedLogs.

pkg/api/controllers/swagger.yaml Show resolved Hide resolved
pkg/ledger/volume_agg.go Show resolved Hide resolved
pkg/ledger/volume_agg.go Outdated Show resolved Hide resolved
agg *VolumeAggregator
postVolumes core.AggregatedVolumes
preVolumes core.AggregatedVolumes
previous *TransactionVolumeAggregator
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
previous *TransactionVolumeAggregator
previousTx *TransactionVolumeAggregator

pkg/storage/sqlstorage/aggregations.go Outdated Show resolved Hide resolved
pkg/storage/sqlstorage/aggregations.go Outdated Show resolved Hide resolved
pkg/ledger/ledger.go Show resolved Hide resolved
@gfyrag gfyrag merged commit ce23843 into main Jun 14, 2022
@gfyrag gfyrag deleted the feature/num-495-add-pre-transactions-balance-to-the-log branch June 14, 2022 08:07
@gfyrag gfyrag added this to the 1.6.0 milestone Jun 24, 2022
@altitude altitude changed the title Feature/num 495 add pre transactions balance to the log Add pre transactions balance to the log Jun 30, 2022
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