ipld-eth-server/core/blockchain_logging_observer.go

10 lines
201 B
Go
Raw Normal View History

package core
import "fmt"
type BlockchainLoggingObserver struct{}
func (blockchainObserver BlockchainLoggingObserver) NotifyBlockAdded(block Block) {
fmt.Println("Added block: %f", block.Number)
}