helium / blockchain-etl

Blockchain follower that follows and stores the Helium blockchain
Apache License 2.0
64 stars 37 forks source link

Fixes first_block for accounts #318

Closed madninja closed 2 years ago

madninja commented 2 years ago

Account roles were failing to include transactions that affected the account “activity“but where not payment related. add_gateway, transfer_hotspot_v2 to a new account address were primary victims of this.

This adds the “owner” actor as a trigger for a new account row insert which will fix it for new accounts.

It also adds a migration that fixes up any account’s first_block fields, that have “owner” actor entries before the first payment activity.

Fixes https://github.com/helium/blockchain-http/issues/412 Fixes https://github.com/helium/blockchain-http/issues/421