AlphaWallet / AlphaWallet/alpha-wallet-android

Find the construction event for contracts

Aperta
#2,508 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Free for all
Lingua principale
Java
Stelle
646
Fork
579
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

This is required to put a lower bound on how far down to pickup log events.

The most obvious approach is to use the Etherscan (etc) Transaction fetch API in reverse, so you'd search ascending from block 1 to block 9999999999 and limit the search to only 1 transaction.

This sometimes would find a bad result, where people have accidentally written to the contract before it was created, but this edge condition is harmless - it would just result in a longer sync.

You would store this block number in realm, possibly in the same RealmAuxData as the log scanning uses, see ```updateEventReads``` in class Token.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.