mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-06 19:06:42 +01:00
Fix ChainID in zkInputs empty TxCmpData
Test TxProcessor zkInputs against a real proof server
This commit is contained in:
@@ -294,6 +294,7 @@ func (tp *TxProcessor) ProcessTxs(coordIdxs []common.Idx, l1usertxs, l1coordinat
|
||||
}
|
||||
}
|
||||
|
||||
txCompressedDataEmpty := common.TxCompressedDataEmpty(tp.config.ChainID)
|
||||
if tp.zki != nil {
|
||||
last := tp.i - 1
|
||||
if tp.i == 0 {
|
||||
@@ -307,7 +308,7 @@ func (tp *TxProcessor) ProcessTxs(coordIdxs []common.Idx, l1usertxs, l1coordinat
|
||||
tp.zki.ISExitRoot[i] = exitTree.Root().BigInt()
|
||||
}
|
||||
if i >= tp.i {
|
||||
tp.zki.TxCompressedData[i] = new(big.Int).SetBytes(common.SignatureConstantBytes)
|
||||
tp.zki.TxCompressedData[i] = txCompressedDataEmpty
|
||||
}
|
||||
}
|
||||
isFinalAccFee := formatAccumulatedFees(collectedFees, tp.zki.FeePlanTokens, coordIdxs)
|
||||
|
||||
Reference in New Issue
Block a user