mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Merge pull request #350 from hermeznetwork/feature/zkinputs6
Update ZKInputs generation:
This commit is contained in:
@@ -221,7 +221,7 @@ type ZKInputs struct {
|
||||
ISInitStateRootFee *big.Int `json:"imInitStateRootFee"` // Hash
|
||||
// ISFinalAccFee final accumulated fees (before computing the fees-tx).
|
||||
// Contains the final values of the ISAccFeeOut parameter
|
||||
ISFinalAccFee []*big.Int `json:"imFinalAccFee"` // big.Int, len: [maxFeeIdxs - 1]
|
||||
ISFinalAccFee []*big.Int `json:"imFinalAccFee"` // big.Int, len: [maxFeeIdxs]
|
||||
}
|
||||
|
||||
func bigIntsToStrings(v interface{}) interface{} {
|
||||
@@ -384,7 +384,7 @@ func NewZKInputs(nTx, maxL1Tx, maxTx, maxFeeIdxs, nLevels uint32, currentNumBatc
|
||||
}
|
||||
zki.ISStateRootFee = newSlice(maxFeeIdxs - 1)
|
||||
zki.ISInitStateRootFee = big.NewInt(0)
|
||||
zki.ISFinalAccFee = newSlice(maxFeeIdxs - 1)
|
||||
zki.ISFinalAccFee = newSlice(maxFeeIdxs)
|
||||
|
||||
return zki
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user