ipld-eth-server/core/blockchain_logging_observer.go
2017-10-23 13:58:33 -05:00

10 lines
210 B
Go

package core
import "fmt"
type BlockchainLoggingObserver struct{}
func (blockchainObserver BlockchainLoggingObserver) NotifyBlockAdded(block Block) {
fmt.Printf("New block was added: %d\n", block.Number)
}