mirror of
https://github.com/trezor/blockbook.git
synced 2026-02-20 00:51:39 +01:00
Simplify comparisons
len(byte[][]) is defined as zero when the value is nil
This commit is contained in:
@@ -188,7 +188,7 @@ func (c *fakeBlockChain) GetTransactionForMempool(txid string) (v *bchain.Tx, er
|
||||
}
|
||||
|
||||
func (c *fakeBlockChain) EstimateSmartFee(blocks int, conservative bool) (v big.Int, err error) {
|
||||
if conservative == false {
|
||||
if !conservative {
|
||||
v.SetInt64(int64(blocks)*100 - 1)
|
||||
} else {
|
||||
v.SetInt64(int64(blocks) * 100)
|
||||
|
||||
Reference in New Issue
Block a user