Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #23 from MichaelMure/notifynewblocks
Browse files Browse the repository at this point in the history
Rename HasBlock to NotifyNewBlocks, and make it accept multiple blocks
  • Loading branch information
Jorropo committed Jul 27, 2022
2 parents 16d8b99 + acb21f7 commit 7a45bd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ import (
type Interface interface { // type Exchanger interface
Fetcher

// TODO Should callers be concerned with whether the block was made
// available on the network?
HasBlock(context.Context, blocks.Block) error

IsOnline() bool
// NotifyNewBlocks tells the exchange that new blocks are available and can be served.
NotifyNewBlocks(ctx context.Context, blocks ...blocks.Block) error

io.Closer
}
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "v0.1.0"
"version": "v0.2.0"
}

0 comments on commit 7a45bd7

Please sign in to comment.