Skip to content

Commit

Permalink
wrangle uint32
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Nov 4, 2024
1 parent 96dd117 commit 00be4cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/btccache.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ func (b *BTCCache) Size() uint64 {
}

// thread-unsafe version of Size
func (b *BTCCache) size() uint32 {
return uint32(len(b.blocks))
func (b *BTCCache) size() int {
return len(b.blocks)
}

// GetLastBlocks returns list of blocks between the given stopHeight and the tip of the chain in cache
// GetLastBlocks return list of blocks between the given stopHeight and the tip of the chain in cache
func (b *BTCCache) GetLastBlocks(stopHeight uint32) ([]*IndexedBlock, error) {
b.RLock()
defer b.RUnlock()
Expand Down

0 comments on commit 00be4cc

Please sign in to comment.