Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow spv wallet to sync before funding it. Wait a bit after funding it for it to filter the new blocks and update balance. Add a sleepFactor that multiplies various test sleeps when the race detector is enabled. Unfortunately this is a very high level harness- based tests where actual synchronization without short arbitrary delays is very difficult. Just modulate the delays.
- Loading branch information
Showing
5 changed files
with
67 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
//go:build !race && harness | ||
// +build !race,harness | ||
|
||
package core | ||
|
||
const race = false |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
//go:build race && harness | ||
// +build race,harness | ||
|
||
package core | ||
|
||
const race = true |
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