mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Update Account.PublicKey to Account.BJJ
Update account.PublicKey to account.BJJ for naming consistency with the rest of the code
This commit is contained in:
@@ -293,10 +293,10 @@ func (txsel *TxSelector) GetL1L2TxSelection(selectionConfig *SelectionConfig,
|
||||
}
|
||||
}
|
||||
if l2Txs[i].ToBJJ != common.EmptyBJJComp {
|
||||
if l2Txs[i].ToBJJ != receiverAcc.PublicKey {
|
||||
if l2Txs[i].ToBJJ != receiverAcc.BJJ {
|
||||
log.Debugw("invalid L2Tx: ToBJJ does not correspond to the Account.BJJ",
|
||||
"ToIdx", l2Txs[i].ToIdx, "tx.ToEthAddr", l2Txs[i].ToBJJ,
|
||||
"account.BJJ", receiverAcc.PublicKey)
|
||||
"account.BJJ", receiverAcc.BJJ)
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user