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

testing rosetta fix #91

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
887f26d
Update usages of core/lib to reflect current state (#59)
lazynina Feb 27, 2024
63505c3
Update DB functions and seeks to work with staked and locked stake ba…
lazynina Feb 27, 2024
02cf0ec
Extract operations from stake, unstake, and unlock stake txns (#61)
lazynina Feb 27, 2024
7e72e0b
Rosetta Support for restaked staking rewards (#60)
lazynina Feb 27, 2024
ffec52f
Use utxoOp.LockedAtEpochNumber to get proper subaccount in getUnstake…
lazynina Feb 27, 2024
fddd4d9
Clean up rosetta pos changes (#68)
lazynina Feb 27, 2024
d0c0612
Use UtxoOps from core's badger instance instead of copying over to ro…
lazynina Feb 27, 2024
03b264b
Update rosetta server init params (#70)
lazynina Feb 27, 2024
f009cb1
Address DH feedback (#71)
lazynina Feb 27, 2024
34b38e8
Update go mod and fix typo (#73)
lazynina Feb 29, 2024
58d23cc
WriteBatch enhancements (#72)
lazynina Mar 11, 2024
a2e132e
Merge branch 'main' into feature/proof-of-stake
lazynina Mar 11, 2024
93ed82c
Rosetta for atomic txns (#76)
lazynina Mar 29, 2024
975a0b0
Remove relic tags in scripts (#78)
lazynina Mar 29, 2024
43b4697
Update to badger v4 and update usage of NewAPIServer (#79)
lazynina Apr 5, 2024
3dcbd4b
Upgrade go to 1-22 (#81)
lazynina Apr 11, 2024
54401ce
Upgrade deps (#82)
lazynina Apr 11, 2024
9e61c71
NewUtxoView doesn't return an error (#83)
lazynina Apr 12, 2024
f66a0a2
Use OnBlockCommitted handler instead of OnBlockConnected (#84)
lazynina Apr 12, 2024
75a9b26
trigger build
lazynina Apr 22, 2024
ea1f728
trigger build 042324
lazynina Apr 23, 2024
0bbbc9a
revert construction hash function changes
lazynina Apr 23, 2024
08e1f67
Fix dockerfile
lazynina Apr 23, 2024
adafdc5
fix build error
lazynina Apr 23, 2024
3268bdf
trigger build for new pre-releases
lazynina Apr 26, 2024
0e2e55c
fix new server calls (#85)
lazynina May 6, 2024
09d7f38
Update NewServer call (#86)
lazynina May 7, 2024
b37cc3f
Remove snapshot db close (#87)
lazynina May 16, 2024
b7567d5
trigger build 5-19-24
lazynina May 19, 2024
ca40717
Add checkpoint syncing providers to rosetta (#88)
lazynina May 20, 2024
990de63
Fix snapshot block height period (#90)
lazynina May 20, 2024
4730534
Reduce write batch size
diamondhands0 May 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Reduce write batch size
  • Loading branch information
diamondhands0 committed May 20, 2024
commit 4730534a1219da2da75a07bcfdd80144e573d278
10 changes: 6 additions & 4 deletions deso/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ func (node *Node) handleSnapshotCompleted() {
snapshot := node.Server.GetBlockchain().Snapshot()
if snapshot != nil &&
snapshot.CurrentEpochSnapshotMetadata.FirstSnapshotBlockHeight != 0 {

writeBatchSize := uint64(100)
glog.Infof("handleSnapshotCompleted: handling snapshot with first snapshot block height %d "+
"and snapshot block height of %d",
"and snapshot block height of %d with batch size of %v",
snapshot.CurrentEpochSnapshotMetadata.FirstSnapshotBlockHeight,
snapshot.CurrentEpochSnapshotMetadata.SnapshotBlockHeight)
snapshot.CurrentEpochSnapshotMetadata.SnapshotBlockHeight,
writeBatchSize)
// If we're at exactly the snapshot height then we've got some work to do.
// Output every single balance in the db to a special index. This will
// bootstrap Rosetta, and allow us to pass check:data. This is because we
Expand All @@ -44,8 +47,7 @@ func (node *Node) handleSnapshotCompleted() {
// the snapshot height rather than the true genesis. This allows us to pass
// check:data without introducing complications for Coinbase.
snapshotBlockHeight := snapshot.CurrentEpochSnapshotMetadata.FirstSnapshotBlockHeight
writeBatchSize := uint64(1000)
statusLoggingInterval := uint64(1000)
statusLoggingInterval := uint64(100)
{
// Iterate through every single public key and put a balance snapshot down
// for it for this block. We don't need to worry about ancestral records here
Expand Down