-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(state): proposer selected twice when prev block round > 0 (#904)
* chore: improve logging * fix(state): invalid proposer selected if prev round > 0 * fix: correct validator increment * test(consensus): TestStateProposerSelectionBetweenRoundsAndHeights * build(deps): update go-deadlock to 0.3.5 * chore: builds * chore: wip * chore: wip * WIP: removed score from validator - tests still red * fix: quorum rotation * chore: round score refactor * chore: fix consensus * chore: first proposer does not work * fix: height score not resetting rounds * fix typo * test: remove old test * chore: comments * chore: moving some files around * chore: move some files around * chore: moving around a bit more * chore: moving around * chore: some renames * chore: add logger as arg * chore: comments * chore: fix some lint issues * chore: code cleanup * chore: rename UpdateScores to UpdateHeightRound * chore: remove unused SetLogger * chore: MustGetProposer should only be used in tests * test: fix some tests * test: fix tests * test: fix tests * chore: some linter issues fixed * chore: bump abci version * chore: lint * doc: add decision to ADR D002. * doc: remove adr-d002
- Loading branch information
Showing
75 changed files
with
2,020 additions
and
1,837 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,10 @@ package quorum | |
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
|
||
"github.com/dashpay/tenderdash/dash/quorum/mock" | ||
"github.com/dashpay/tenderdash/types" | ||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func Test_validatorMap_String(t *testing.T) { | ||
|
@@ -30,11 +31,11 @@ func Test_validatorMap_String(t *testing.T) { | |
{ | ||
vm: newValidatorMap(vals), | ||
contains: []string{ | ||
"<nil> VP:0 A:0 N:tcp://[email protected]:1}", | ||
"<nil> VP:0 A:0 N:tcp://[email protected]:2}", | ||
"<nil> VP:0 A:0 N:tcp://[email protected]:3}", | ||
"<nil> VP:0 A:0 N:tcp://[email protected]:4}", | ||
"<nil> VP:0 A:0 N:tcp://[email protected]:5}", | ||
"<nil> VP:0 N:tcp://[email protected]:1}", | ||
"<nil> VP:0 N:tcp://[email protected]:2}", | ||
"<nil> VP:0 N:tcp://[email protected]:3}", | ||
"<nil> VP:0 N:tcp://[email protected]:4}", | ||
"<nil> VP:0 N:tcp://[email protected]:5}", | ||
}, | ||
}, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.