diff --git a/genesis.go b/genesis.go index 3ec7b63f..adbfbb0b 100644 --- a/genesis.go +++ b/genesis.go @@ -13,7 +13,7 @@ import ( var genesisCoinbaseTx = MsgTx{ Version: 1, TxIn: []*TxIn{ - &TxIn{ + { PreviousOutpoint: OutPoint{ Hash: ShaHash{}, Index: 0xffffffff, @@ -34,7 +34,7 @@ var genesisCoinbaseTx = MsgTx{ }, }, TxOut: []*TxOut{ - &TxOut{ + { Value: 0x12a05f200, PkScript: []byte{ 0x41, 0x04, 0x67, 0x8a, 0xfd, 0xb0, 0xfe, 0x55, /* |A.g....U| */ diff --git a/msgblock_test.go b/msgblock_test.go index ae252436..c736e6ce 100644 --- a/msgblock_test.go +++ b/msgblock_test.go @@ -470,10 +470,10 @@ var blockOne = btcwire.MsgBlock{ Nonce: 0x9962e301, // 2573394689 }, Transactions: []*btcwire.MsgTx{ - &btcwire.MsgTx{ + { Version: 1, TxIn: []*btcwire.TxIn{ - &btcwire.TxIn{ + { PreviousOutpoint: btcwire.OutPoint{ Hash: btcwire.ShaHash{}, Index: 0xffffffff, @@ -485,7 +485,7 @@ var blockOne = btcwire.MsgBlock{ }, }, TxOut: []*btcwire.TxOut{ - &btcwire.TxOut{ + { Value: 0x12a05f200, PkScript: []byte{ 0x41, // OP_DATA_65 @@ -551,5 +551,5 @@ var blockOneBytes = []byte{ // Transaction location information for block one transactions. var blockOneTxLocs = []btcwire.TxLoc{ - btcwire.TxLoc{TxStart: 81, TxLen: 134}, + {TxStart: 81, TxLen: 134}, } diff --git a/msgtx_test.go b/msgtx_test.go index 47b1f1d9..5688baa2 100644 --- a/msgtx_test.go +++ b/msgtx_test.go @@ -620,7 +620,7 @@ func TestTxSerializeSize(t *testing.T) { var multiTx = &btcwire.MsgTx{ Version: 1, TxIn: []*btcwire.TxIn{ - &btcwire.TxIn{ + { PreviousOutpoint: btcwire.OutPoint{ Hash: btcwire.ShaHash{}, Index: 0xffffffff, @@ -632,7 +632,7 @@ var multiTx = &btcwire.MsgTx{ }, }, TxOut: []*btcwire.TxOut{ - &btcwire.TxOut{ + { Value: 0x12a05f200, PkScript: []byte{ 0x41, // OP_DATA_65