FuelLabs / data-systems

Fuel data systems related projects
Apache License 2.0
5 stars 10 forks source link

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

Closed lostman closed 3 months ago

lostman commented 3 months ago

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
  }
}