From 87182a2ddf633e5da5d80fec0ab82a59691debe6 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 21 Dec 2015 15:50:51 +0100 Subject: [PATCH] blockchain: Correct serialized coinbase height error message. --- blockchain/validate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockchain/validate.go b/blockchain/validate.go index 98beba538..c32fc194d 100644 --- a/blockchain/validate.go +++ b/blockchain/validate.go @@ -764,7 +764,7 @@ func ExtractCoinbaseHeight(coinbaseTx *btcutil.Tx) (int32, error) { str := "the coinbase signature script for blocks of " + "version %d or greater must start with the " + "serialized block height" - str = fmt.Sprintf(str, serializedLen) + str = fmt.Sprintf(str, serializedHeightVersion) return 0, ruleError(ErrMissingCoinbaseHeight, str) }