func blockNum(block pow.Block) (uint64, error) { nonce := block.N() nonceBuf := bytes.NewBuffer(nonce) nonceInt, err := binary.ReadUvarint(nonceBuf) if err != nil { return 0, err } return nonceInt, nil }