ipld-eth-server/core/blockchain_logging_observer.go

10 lines
210 B
Go
Raw Normal View History

package core
import "fmt"
type BlockchainLoggingObserver struct{}
func (blockchainObserver BlockchainLoggingObserver) NotifyBlockAdded(block Block) {
2017-10-23 18:58:33 +00:00
fmt.Printf("New block was added: %d\n", block.Number)
}