Please report bugs using the issue tracker at GitHub:
https://github.com/flokiorg/grpc-miner/issues
Fixes
mining/miner_test.go:TestMineWithIssueused a mock whoseSubmitNoncealways returns an error, but the test assertedacceptedBlocks == 1— an outcome impossible given the mock, and a copy-paste leftover from the adjacent success-path test. Fixed the expected value to0.- Two
context.WithTimeoutcancel-function leaks inTestStartMiningandTestMineWithIssue.
CI
- Added
.github/workflows/ci.yaml: runsgo build,go vet, andgo teston push tomainand on pull requests.