Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Commit

Permalink
Update glide and fix unlikely simnet panic (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjepson committed Jun 3, 2016
1 parent 5cc29df commit 65641c4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions feeest.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ func (t *ticketPurchaser) findClosestFeeWindows(difficulty float64,

sort.Sort(sortable)

// No data available, prevent a panic.
if len(sortable) == 0 {
return 0, nil
}

return sortable[0].fee, nil
}

Expand Down
8 changes: 4 additions & 4 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import:
- package: github.com/btcsuite/seelog
- package: github.com/btcsuite/websocket
- package: github.com/decred/dcrd
version: e8e81fe490de38d195bc5996b0c533c25401c53e
version: eda86f5267b747f095da4235cfb10fa361b5f769
subpackages:
- blockchain
- blockchain/stake
Expand All @@ -22,7 +22,7 @@ import:
- txscript
- wire
- package: github.com/decred/dcrrpcclient
version: 7df7e9027e1dbc0fa3f9f9adc83acc7bf0f1144a
version: f3c620d63cb02aec0c1152a72d3c8669b92a2fb5
- package: github.com/decred/dcrutil
subpackages:
- hdkeychain
Expand Down

0 comments on commit 65641c4

Please sign in to comment.