hermeznetwork / hermez-node

Hermez node Go implementation
GNU Affero General Public License v3.0
58 stars 33 forks source link

Feature/#831 tx hash #1103

Closed ARR552 closed 3 years ago

ARR552 commented 3 years ago

Closes #831

What does this PR does?

This PR adds the eth_tx_hash and l1_fee to the tx table. This alllows to store and return in transactions-history endpoints the l1 tx hash and the fee that the user spent in the l1 tx.

L1_fee is null if the tx is an L1Coordinator. In this case we can not give the real value of the fee. Also, the eth_tx_hash is the same of the batch where this l1Coordinator tx where included.

How to test?

go run test

Checklist

These are the criteria that every PR should meet, please check them off as you review them: