Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 19d0bdd

Browse files
committed
FD-420, FD-421 for communitnet
1 parent a7e6f33 commit 19d0bdd

140 files changed

Lines changed: 581 additions & 381 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Utilities/DatabaseDumper/databaseDumper_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package main
22

33
import (
4-
"github.com/FactomProject/factomd/testHelper"
54
"testing"
5+
6+
"github.com/FactomProject/factomd/testHelper"
67
)
78

89
func TestTest(t *testing.T) {

Utilities/DatabasePorter/porter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ func CheckDBlockEntries(dBlock interfaces.IDirectoryBlock, dbo interfaces.DBOver
653653
eBlockEntries := eBlock.GetEntryHashes()
654654
// Used to determine random sampling if fast==true
655655
entryCount := 0
656-
// Not going to use the loop counter, as it also includes minute markes. We
656+
// Not going to use the loop counter, as it also includes minute marks. We
657657
// Do not want to include those in our random sampling
658658
for _, eHash := range eBlockEntries {
659659
if eHash.IsMinuteMarker() == true {

Utilities/SetChainHead/SetChainHead.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ import (
88
"fmt"
99
"os"
1010

11+
"strconv"
12+
1113
"github.com/FactomProject/factomd/database/databaseOverlay"
1214
"github.com/FactomProject/factomd/database/hybridDB"
13-
"strconv"
1415
)
1516

1617
const level string = "level"

common/adminBlock/adminBlockHeader.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"fmt"
1111

1212
"errors"
13+
1314
"github.com/FactomProject/factomd/common/constants"
1415
"github.com/FactomProject/factomd/common/interfaces"
1516
"github.com/FactomProject/factomd/common/primitives"

common/directoryBlock/dbInfo/dbInfo_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package dbInfo_test
22

33
import (
44
"bytes"
5+
"testing"
6+
57
. "github.com/FactomProject/factomd/common/directoryBlock/dbInfo"
68
"github.com/FactomProject/factomd/testHelper"
7-
"testing"
89
)
910

1011
func TestMarshalUnmarshal(t *testing.T) {

common/directoryBlock/directoryBlock_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func TestMakeSureBlockCountIsNotDuplicates(t *testing.T) {
218218
}
219219
t.Logf("Min count - %v, max count - %v", min, max)
220220
if min != 1 {
221-
t.Errorf("Invalid number of BlockCount occurances")
221+
t.Errorf("Invalid number of BlockCount occurrences")
222222
}
223223
}
224224

common/entryBlock/eblock.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
// EBlock is the Entry Block. It holds the hashes of the Entries and its Merkle
1515
// Root is written into the Directory Blocks. Each Entry Block represents all
16-
// of the entries for a paticular Chain during a 10 minute period.
16+
// of the entries for a particular Chain during a 10 minute period.
1717
type EBlock struct {
1818
Header interfaces.IEntryBlockHeader `json:"header"`
1919
Body *EBlockBody `json:"body"`
@@ -167,7 +167,7 @@ func (e *EBlock) BodyKeyMR() interfaces.IHash {
167167
return e.GetHeader().GetBodyMR()
168168
}
169169

170-
// KeyMR returns the hash of the hash of the Entry Block Header concatinated
170+
// KeyMR returns the hash of the hash of the Entry Block Header contaminated
171171
// with the Merkle Root of the Entry Block Body. The Body Merkle Root is
172172
// calculated by the func (e *EBlockBody) MR() which is called by the func
173173
// (e *EBlock) BuildHeader().

common/entryBlock/eblockBody.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (a *EBlockBody) IsSameAs(b interfaces.IEBlockBody) bool {
4141
return true
4242
}
4343

44-
// NewEBlockBody initalizes an empty Entry Block Body.
44+
// NewEBlockBody initializes an empty Entry Block Body.
4545
func NewEBlockBody() *EBlockBody {
4646
e := new(EBlockBody)
4747
e.EBEntries = make([]interfaces.IHash, 0)

common/entryBlock/eblockBody_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
package entryBlock_test
66

7-
import (
87
//"testing"
98

109
//. "github.com/FactomProject/factomd/common/entryBlock"
11-
)

common/entryBlock/eblockHeader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/FactomProject/factomd/common/primitives"
88
)
99

10-
// EBlockHeader holds relevent metadata about the Entry Block and the data
10+
// EBlockHeader holds relevant metadata about the Entry Block and the data
1111
// nessisary to verify the previous block in the Entry Block Chain.
1212
type EBlockHeader struct {
1313
ChainID interfaces.IHash `json:"chainid"`

0 commit comments

Comments
 (0)