Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(data-stream): bootstrap the stream from Fuel node's storage #22

Merged
merged 3 commits into from
Jun 19, 2024

Conversation

lostman
Copy link
Contributor

@lostman lostman commented Jun 12, 2024

Closes #26

After 3548979 blocks:

nats str ls
╭──────────────────────────────────────────────────────────────────────────────╮
│                                    Streams                                   │
├──────┬─────────────┬─────────────────────┬───────────┬────────┬──────────────┤
│ Name │ Description │ Created             │ Messages  │ Size   │ Last Message │
├──────┼─────────────┼─────────────────────┼───────────┼────────┼──────────────┤
│ fuel │             │ 2024-06-12 16:59:04 │ 7,111,105 │ 12 GiB │ 3m9s         │
╰──────┴─────────────┴─────────────────────┴───────────┴────────┴──────────────╯
nats sub "receipts.>" --last
11:29:28 Subscribing to JetStream Stream holding messages with subject receipts.> starting with the last message received
[#1] Received JetStream message: stream: fuel seq 7104149 / subject: receipts.3548979.0000000000000000000000000000000000000000000000000000000000000000.script_result / time: 2024-06-14T11:14:56+02:00
{
  "ScriptResult": {
    "result": "Success",
    "gas_used": 0
  }
}

@lostman lostman force-pushed the fuel-core-nats-bootstrap-v2 branch 5 times, most recently from 54e6089 to 2d8f72c Compare June 14, 2024 14:08
@lostman lostman force-pushed the fuel-core-nats-bootstrap-v2 branch from 2d8f72c to df26fa6 Compare June 14, 2024 19:08
@lostman lostman marked this pull request as ready for review June 14, 2024 19:10
@lostman lostman force-pushed the fuel-core-nats-bootstrap-v2 branch from 4074306 to b07ce9e Compare June 18, 2024 10:26
@lostman lostman force-pushed the fuel-core-nats-bootstrap-v2 branch from b07ce9e to 0293999 Compare June 18, 2024 10:45
Cargo.toml Outdated Show resolved Hide resolved
crates/fuel-core-nats/nats.conf Show resolved Hide resolved
crates/fuel-core-nats/src/lib.rs Show resolved Hide resolved
crates/fuel-core-nats/src/lib.rs Show resolved Hide resolved
crates/fuel-core-nats/src/lib.rs Show resolved Hide resolved
@pedronauck pedronauck merged commit 6dc91c2 into main Jun 19, 2024
5 checks passed
@pedronauck pedronauck deleted the fuel-core-nats-bootstrap-v2 branch June 19, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bootstrap stream using Fuel's service database
3 participants