ipld-eth-server/core/blockchain_logging_observer.go

10 lines
242 B
Go

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