mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-08 03:46:52 +01:00
Idx to 6 bytes (48 bits)
This commit is contained in:
@@ -678,7 +678,11 @@ func (s *StateDB) setIdx(idx common.Idx) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = tx.Put(keyidx, idx.Bytes())
|
||||
idxBytes, err := idx.Bytes()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = tx.Put(keyidx, idxBytes[:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user