hermeznetwork / hermez-node

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

Accounts issue #1121

Open mfcastellani opened 3 years ago

mfcastellani commented 3 years ago

Testing with 100k transactions we got a lot of this:

image.png

mfcastellani commented 3 years ago

@tclemos query

SELECT DISTINCT ('0x' || encode(a.eth_addr, 'hex')) eth_addr
          FROM account a
         INNER JOIN token t
            ON a.token_id = a.token_id
         WHERE t.symbol = 'HEZ'   
           AND a.idx > 256 
           AND lower(encode(a.eth_addr, 'hex')) != 'ffffffffffffffffffffffffffffffffffffffff'
           AND lower(encode(a.eth_addr, 'hex')) != '9fffffffffffffffffffffffffffffffffffffff'
         LIMIT 2000;