[FIX] Formatting and code-style (#118)
* [FIX] Formatting and code-style - gofmt - import resort - prealloc slices - simplify code * fix vet
This commit is contained in:
parent
df2e9f68ef
commit
f000b76879
37 changed files with 145 additions and 124 deletions
|
@ -11,7 +11,7 @@ import (
|
|||
|
||||
func TestHeadersEncodeDecode(t *testing.T) {
|
||||
headers := &Headers{[]*core.Header{
|
||||
&core.Header{
|
||||
{
|
||||
BlockBase: core.BlockBase{
|
||||
Version: 0,
|
||||
Index: 1,
|
||||
|
@ -20,7 +20,7 @@ func TestHeadersEncodeDecode(t *testing.T) {
|
|||
VerificationScript: []byte{0x1},
|
||||
},
|
||||
}},
|
||||
&core.Header{
|
||||
{
|
||||
BlockBase: core.BlockBase{
|
||||
Version: 0,
|
||||
Index: 2,
|
||||
|
@ -29,7 +29,7 @@ func TestHeadersEncodeDecode(t *testing.T) {
|
|||
VerificationScript: []byte{0x1},
|
||||
},
|
||||
}},
|
||||
&core.Header{
|
||||
{
|
||||
BlockBase: core.BlockBase{
|
||||
Version: 0,
|
||||
Index: 3,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue