hermeznetwork / hermez-node

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

Improvements/get provers from database #1144

Closed marioidival closed 2 years ago

marioidival commented 2 years ago

closes #1105 closes #1106

What does this PR does?

The PR add the feature to get provers servers addresses from database.

How to test?

It's a good question, we need figure out how test it in real life.

Checklist

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

marioidival commented 2 years ago

Integration tests log commit: 9fb4ff8b2ad618ca3a3f5247d934da0cb1b98436

    ✓ Init variables (9726ms)
    ✓ Check ETH L1 deposit (112543ms)
    ✓ Check ERC20 L1 deposit (49621ms)
    ✓ Check ETH L1 force exit (45070ms)
    ✓ Check ERC20 L1 force exit (34391ms)
    ✓ Check ETH withdrawal from firsts forceExits (12449ms)
    ✓ Check ERC20 withdrawal from firsts forceExits (16331ms)
    ✓ Check ETH N L1 force exits (44319ms)
    ✓ Check ETH withdrawal from previous N force exits (8256ms)
    ✓ Check single ETH L2 transfer (40513ms)
    ✓ Check single ERC20 L2 transfer (40347ms)
    ✓ Transfer ETH to a non-existent Bjj address (30318ms)
    ✓ Transfer ERC20 to a non-existent Bjj address (40374ms)
    ✓ Transfer ETH to hermez ethereum address (40371ms)
    ✓ Transfer ERC20 to hermez ethereum address (30391ms)
    ✓ Transfer ETH to non-existent ETH address (50969ms)
    ✓ Transfer ETH to hermez ethereum address from internal account (20816ms)
    ✓ Transfer ERC20 to hermez ethereum address from internal account (50686ms)
    ✓ Check multiple L2 ETH transfer in same batch (41093ms)
    ✓ Check multiple L2 ETH transfer in different batches (162193ms)
    ✓ Atomic txs (50786ms)
    ✓ Check L2 ETH exit (50598ms)
    ✓ Check L2 ERC20 exit (40397ms)
    ✓ Check ETH withdrawal from L2 exit (8332ms)
    ✓ Check ERC20 withdrawal from L2 exit (8258ms)
    ✓ Exit ETH and circuit withdrawal (46548ms)
    ✓ Assert API endpoints (5260ms)
    ✓ Update Buckets (12533ms)
    ✓ Check ETH L1 force exit bucket (38669ms)
    ✓ Check ERC20 L1 force exit bucket (48444ms)
    ✓ Check ETH withdrawal buckets (16462ms)
    ✓ Check ERC20 withdrawal buckets (12424ms)
    ✓ Check withdrawals buckets (40ms)

  33 passing (21m)