mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-08 03:46:52 +01:00
Update Common & StateDB & ZKInputs to last protocol version
- Add InvalidData flag to L1Tx
- Add BytesDataAvailability to L1Tx
- Update ZKInputs & HashGlobalInputs to last spec of the protocol
(massive migrations)
- TxProcessor check correctness of L1Txs
Compatible with hermeznetwork/commonjs v0.0.4
(c345239bba)
This commit is contained in:
@@ -36,6 +36,11 @@ func (bn BatchNum) Bytes() []byte {
|
||||
return batchNumBytes[:]
|
||||
}
|
||||
|
||||
// BigInt returns a *big.Int representing the BatchNum
|
||||
func (bn BatchNum) BigInt() *big.Int {
|
||||
return big.NewInt(int64(bn))
|
||||
}
|
||||
|
||||
// BatchNumFromBytes returns BatchNum from a []byte
|
||||
func BatchNumFromBytes(b []byte) (BatchNum, error) {
|
||||
if len(b) != batchNumBytesLen {
|
||||
|
||||
Reference in New Issue
Block a user