diff --git a/interface.go b/interface.go index 7640c57..2c04628 100644 --- a/interface.go +++ b/interface.go @@ -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 } diff --git a/version.json b/version.json index 557859c..1437d5b 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "v0.1.0" + "version": "v0.2.0" }