forked from cerc-io/ipld-eth-server
10 lines
242 B
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)
|
|
}
|