Skip to content

Commit

Permalink
fix calculating master diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tron committed Aug 6, 2024
1 parent 3c474e8 commit 8c52dff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/api/blockchain_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func findMissedBlocks(ctx context.Context, s storage, id ton.BlockID, prev []ton
for _, p := range prev {
if id.Shard == p.Shard && id.Workchain == p.Workchain {
blocks := make([]ton.BlockID, 0, int(id.Seqno-p.Seqno))
for i := p.Seqno; i < id.Seqno; i++ {
for i := p.Seqno + 1; i <= id.Seqno; i++ {
blocks = append(blocks, ton.BlockID{Workchain: p.Workchain, Shard: p.Shard, Seqno: i})
}
return blocks, nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/chainstate/chainstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (s *ChainState) GetAPY() float64 {
}

func NewChainState(c config) *ChainState {
chain := &ChainState{apy: 5.4, banned: map[tongo.AccountID]struct{}{}, config: c}
chain := &ChainState{apy: 3.3, banned: map[tongo.AccountID]struct{}{}, config: c}

go func() {
for {
Expand Down

0 comments on commit 8c52dff

Please sign in to comment.