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