polyswarm / relay

Sidechain relay for PolySwarm, the first decentralized threat intelligence market.
https://polyswarm.io
GNU General Public License v3.0
2 stars 1 forks source link

Withdraw all NCT from a sidechain that is flushed #91

Closed Rizato closed 5 years ago

Rizato commented 5 years ago

The goal is to respond to the Flush in the ERC20 Relay contract and withdraw NCT balances to the same wallet on homechain. That way we can shutdown a community and restore NCT to the original owner without user interaction.

~So far, this just adds a route to the http endpoint to get all the balances. Testing to see if looking over the entire history is fast enough.~ Takes about 15 minutes on 8 million blocks, but it should only run once in the lifetime of a community.

TODO: