Test fee amount only for transactions with inputs
This commit is contained in:
parent
e08e923ee8
commit
d67eae31bb
@ -334,6 +334,7 @@ func verifyAddresses(t *testing.T, d *db.RocksDB, h *TestHandler) {
|
||||
tx.Txid, taInfo.valOutSat.String(), txInfo.valOutSat.String())
|
||||
}
|
||||
|
||||
if len(txInfo.inputs) > 0 {
|
||||
treshold := "0.0001"
|
||||
fee := new(big.Int).Sub(&taInfo.valInSat, &taInfo.valOutSat)
|
||||
if strings.Compare(parser.AmountToDecimalString(fee), treshold) > 0 {
|
||||
@ -342,6 +343,7 @@ func verifyAddresses(t *testing.T, d *db.RocksDB, h *TestHandler) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
type txInfo struct {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user