Update tx bytes parsers methods

This commit is contained in:
arnaucube
2020-11-06 15:24:12 +01:00
parent 4a29cafcb7
commit fac8577bad
4 changed files with 41 additions and 19 deletions

View File

@@ -48,8 +48,11 @@ func TestCalcFeeAmount(t *testing.T) {
}
func TestFeePrintSQLSwitch(t *testing.T) {
debug := false
for i := 0; i < 256; i++ {
f := FeeSelector(i).Percentage()
fmt.Printf(" WHEN $1 = %03d THEN %.6e\n", i, f)
if debug {
fmt.Printf(" WHEN $1 = %03d THEN %.6e\n", i, f)
}
}
}