Merge pull request #265 from hermeznetwork/feature/zkinputs1

StateDB group Fee txs and ZKInputs gen of Fee txs & Update tx bytes parsers methods
This commit is contained in:
Eduard S
2020-11-09 10:58:49 +01:00
committed by GitHub
7 changed files with 189 additions and 96 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)
}
}
}