Skip to content

Commit

Permalink
pool: resolve review issues (3 of x).
Browse files Browse the repository at this point in the history
  • Loading branch information
dnldd committed Sep 16, 2020
1 parent e5a3d3d commit 89827b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions pool/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,12 +453,6 @@ func (c *Client) handleSubmitWorkRequest(ctx context.Context, req *Request, allo
// by the mining node.
work := NewAcceptedWork(hash.String(), header.PrevBlock.String(),
header.Height, c.account, c.cfg.FetchMiner())
if err != nil {
sErr := NewStratumError(Unknown, err)
resp := SubmitWorkResponse(*req.ID, false, sErr)
c.ch <- resp
return err
}
err = work.Create(c.cfg.DB)
if err != nil {
// If the submitted accepted work already exists, ignore the
Expand Down
4 changes: 2 additions & 2 deletions pool/upgrades_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ func verifyV4Upgrade(t *testing.T, db *bolt.DB) {
err := db.View(func(tx *bolt.Tx) error {
pbkt := tx.Bucket(poolBkt)
if pbkt == nil {
return fmt.Errorf("%s: bucket %s not found", string(poolBkt),
funcName)
return fmt.Errorf("%s: bucket %s not found", funcName,
string(poolBkt))
}

v := pbkt.Get([]byte("txfeereserve"))
Expand Down

0 comments on commit 89827b5

Please sign in to comment.