forked from cerc-io/ipld-eth-server
10 lines
201 B
Go
10 lines
201 B
Go
|
package core
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
type BlockchainLoggingObserver struct{}
|
||
|
|
||
|
func (blockchainObserver BlockchainLoggingObserver) NotifyBlockAdded(block Block) {
|
||
|
fmt.Println("Added block: %f", block.Number)
|
||
|
}
|