-
Notifications
You must be signed in to change notification settings - Fork 9
blockstream state persist #3
Comments
Could we, take our latest block in the database, follow up until parent is not within the fork and continue from there? |
@nionis can you explain "follow up until parent is not within the fork and continue from there?" more deeply? |
@shrugs I am not sure if I am technically correct, but when the system boots again after restart:
But I am not sure if there is an easy way to check if block was invalidated cause then blockstream would have implemented it already edit: |
It may be difficult to check if a specific block has been invalidated, I haven't tried that though. Hmm, we may not be able to just plug-and-play the blockstream; we'll have to consolidate our own database with whatever it sees, so we'd have to be able to replace its internal blockchain with the one in the database and then run it. Hmm, this requires a bit more thought from me, code-wise, sorry. |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done This issue now has a funding of 360.0 DAI (360.0 USD @ $1.0/DAI) attached to it.
|
@nionis that's yours to claim 😉 |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done Work has been started. These users each claimed they can complete the work by 11 months, 3 weeks from now.
Learn more on the Gitcoin Issue Details page. |
@shrugs sweet! thanks :) |
@nionis Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
@shrugs I guess this is done? |
@nionis yup; I'm not the funder, though, so I gotta let vivek get around to approving it. I've dm'd him :) |
@nionis actually, can you submit a PR on gitcoin or something? I haven't gone through the flow as a claimer, so idk what it's like. |
Hi @nionis can you 'Submit Work' on Gitcoin here? If you need a bit of ETH to make your first transaction, the Gitcoin Faucet can help. From there, I'll pay out the bounty! Great work here 🙂 |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done Work for 360.0 DAI (360.0 USD @ $1.0/DAI) has been submitted by: @vs77bb please take a look at the submitted work:
|
Issue Status: 1. Open 2. Started 3. Submitted 4. Done The funding of 360.0 DAI (360.0 USD @ $1.0/DAI) attached to this issue has been approved & issued to @nionis.
|
Problem
If we are following the chain but then stop processing during a short-lived fork, once we restart the process the blockstream queue will be empty so it will blindly trust that the next block it sees is the main chain because it can't do any resolution since it doesn't know the blocks before that to calculate longest chain.
Solution
When resuming from a block number
n
, actually import all blocks fromn-10
ton
and then start triggering any listeners that want info from blocksn+
The text was updated successfully, but these errors were encountered: