From 8857485fa8c91f62b33b6179c45898762787ada6 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sun, 20 Apr 2014 23:24:56 -0500 Subject: [PATCH] Remove note that is no longer true. The code was updated to automatically handle the transaction count in the block header without having the additional field some time ago. This comment was outdated. --- msgblock.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/msgblock.go b/msgblock.go index 9b2fe373..33186d8f 100644 --- a/msgblock.go +++ b/msgblock.go @@ -37,13 +37,6 @@ type TxLoc struct { // MsgBlock implements the Message interface and represents a bitcoin // block message. It is used to deliver block and transaction information in // response to a getdata message (MsgGetData) for a given block hash. -// -// NOTE: Unlike the other message types which contain slices, the number of -// transactions has a specific entry (Header.TxnCount) that must be kept in -// sync. The AddTransaction and ClearTransactions functions properly sync the -// value, but if you are manually modifying the public members, you will need -// to ensure you update the Header.TxnCount when you add and remove -// transactions. type MsgBlock struct { Header BlockHeader Transactions []*MsgTx