2017-10-23 15:56:29 +00:00
|
|
|
package core
|
|
|
|
|
|
|
|
type Blockchain interface {
|
2017-11-06 20:36:12 +00:00
|
|
|
GetBlockByNumber(blockNumber int64) Block
|
2017-11-02 11:41:24 +00:00
|
|
|
SubscribeToBlocks(blocks chan Block)
|
|
|
|
StartListening()
|
2017-11-03 13:54:32 +00:00
|
|
|
StopListening()
|
2017-10-23 15:56:29 +00:00
|
|
|
}
|