Coins not created in local testnode

Description

When running the new --snapshot format fuel-core run to bring up a local testnet, coins are not being created.

Command

fuel-core run --db-type in-memory --debug --snapshot ./deployment/dev-volumes/chain

output

2024-05-09T23:51:31.639284Z  INFO fuel_core_bin::cli: 117: Loading environment variables from *redacted*
2024-05-09T23:51:31.640435Z  INFO fuel_core_bin::cli::run::relayer: 63: Relayer service disabled
2024-05-09T23:51:31.640444Z  INFO fuel_core_bin::cli::run::p2p: 237: P2P service disabled
2024-05-09T23:51:31.640448Z  INFO fuel_core_bin::cli::run: 269: Block production mode: Instant
2024-05-09T23:51:31.640557Z  WARN fuel_core_bin::cli::run: 283: Fuel Core is using an insecure test key for consensus. Public key: 73dc6cc8cc0041e4924954b35a71a22ccb520664c522198a6d31dc6c945347bb854a39382d296ec64c70d7cea1db75601595e29729f3fbdc7ee9dae66705beb4
2024-05-09T23:51:31.640566Z  WARN fuel_core_bin::cli::run: 296: The coinbase recipient `ContractId` is not set!
2024-05-09T23:51:31.640570Z  INFO fuel_core_bin::cli::run: 389: Fuel Core version v0.26.0+nightly.20240509.32600dbfbd
2024-05-09T23:51:31.640618Z  INFO new{name=fuel-core}: fuel_core::service: 193: Initializing database
2024-05-09T23:51:31.640643Z  INFO new{name=fuel-core}: fuel_core::service: 197: Initializing sub services
2024-05-09T23:51:31.642255Z  INFO new{name=fuel-core}: fuel_core::graphql_api::api_service: 242: Binding GraphQL provider to 127.0.0.1:4000
2024-05-09T23:51:31.642607Z  INFO new{name=fuel-core}:initialize_loop{service="SyncTask"}: fuel_core_services::service: 289: The service SyncTask is shut down
2024-05-09T23:51:31.642635Z  INFO new{name=fuel-core}:initialize_loop{service="ImportTask"}: fuel_core_services::service: 289: The service ImportTask is shut down
2024-05-09T23:51:31.643005Z  INFO new{name=fuel-core}:initialize_loop{service="FuelService"}: fuel_core_services::service: 321: Starting FuelService service
2024-05-09T23:51:31.643029Z  INFO new{name=fuel-core}:initialize_loop{service="FuelService"}: fuel_core::service::genesis: 73: Genesis block created: V1(BlockHeaderV1 { application: ApplicationHeader { da_height: DaBlockHeight(0), consensus_parameters_version: 0, state_transition_bytecode_version: 0, generated: GeneratedApplicationFields { transactions_count: 0, message_receipt_count: 0, transactions_root: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, message_outbox_root: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, event_inbox_root: 0000000000000000000000000000000000000000000000000000000000000000 } }, consensus: ConsensusHeader { prev_root: 0000000000000000000000000000000000000000000000000000000000000000, height: 00000000, time: Tai64(4611686018427387914), generated: GeneratedConsensusFields { application_hash: 10da0ac8f480775bfc51f5e2f8066dd95f847c5f6b7f6c13b529a97f84f9a680 } }, metadata: Some(BlockHeaderMetadata { id: BlockId(b492ade362b06953001f0d79bca3f496ce0ebc63c0d34149b64e3feee748eb93) }) })
2024-05-09T23:51:31.643455Z  INFO new{name=fuel-core}:initialize_loop{service="FuelService"}: fuel_core::service::genesis::importer: 108: Running imports
2024-05-09T23:51:31.661966Z  INFO new{name=fuel-core}:initialize_loop{service="FuelService"}:_commit_result{block_id=b492ade362b06953001f0d79bca3f496ce0ebc63c0d34149b64e3feee748eb93 height=0 tx_status=[]}: fuel_core_importer::importer: 312: Committed block 0xb492ade362b06953001f0d79bca3f496ce0ebc63c0d34149b64e3feee748eb93
2024-05-09T23:51:31.661986Z  INFO new{name=fuel-core}:initialize_loop{service="GraphQL"}: fuel_core_services::service: 321: Starting GraphQL service
2024-05-09T23:51:31.662007Z  INFO new{name=fuel-core}:initialize_loop{service="TxPool"}: fuel_core_services::service: 321: Starting TxPool service
2024-05-09T23:51:31.662025Z  INFO new{name=fuel-core}:initialize_loop{service="ConsensusParametersProviderTask"}: fuel_core_services::service: 321: Starting ConsensusParametersProviderTask service
2024-05-09T23:51:31.662039Z  INFO new{name=fuel-core}:initialize_loop{service="PoA"}: fuel_core_services::service: 321: Starting PoA service
2024-05-09T23:51:31.662046Z  INFO new{name=fuel-core}:initialize_loop{service="PoASyncTask"}: fuel_core_services::service: 321: Starting PoASyncTask service
2024-05-09T23:51:31.662156Z  INFO new{name=fuel-core}:initialize_loop{service="GraphQL_Off_Chain_Worker"}: fuel_core_services::service: 321: Starting GraphQL_Off_Chain_Worker service

Fuelup show

installed toolchains
--------------------
beta-4-aarch64-apple-darwin
beta-5-aarch64-apple-darwin
latest-aarch64-apple-darwin
nightly-aarch64-apple-darwin (default)
latest-2023-07-18-aarch64-apple-darwin
latest-2023-09-29-aarch64-apple-darwin
my-beta-5-w-nightly-lsp
nightly-2024-01-24-aarch64-apple-darwin
nightly-2024-04-23-aarch64-apple-darwin

active toolchain
----------------
nightly-aarch64-apple-darwin (default)
  forc : 0.56.1+nightly.20240509.4a63b41de1
    - forc-client
      - forc-deploy : 0.56.1+nightly.20240509.4a63b41de1
      - forc-run : 0.56.1+nightly.20240509.4a63b41de1
    - forc-crypto : 0.56.1+nightly.20240509.4a63b41de1
    - forc-doc : 0.56.1+nightly.20240509.4a63b41de1
    - forc-explore : 0.28.1+nightly.20240509.4bb7392eed
    - forc-fmt : 0.56.1+nightly.20240509.4a63b41de1
    - forc-lsp : 0.56.1+nightly.20240509.4a63b41de1
    - forc-tx : 0.56.1+nightly.20240509.4a63b41de1
    - forc-wallet : 0.6.1+nightly.20240509.3472d3c200
  fuel-core : 0.26.0+nightly.20240509.32600dbfbd
  fuel-core-keygen : not found

Configuration

Contents of deployments/dev-volumes/chain

  • state_config.json
  • metadata.json
  • chain_config.json
  • state_transition_bytecode.wasm

Minimal state config

{
  "coins": [
    {
      "tx_id": "0000000000000000000000000000000000000000000000000000000000000000",
      "output_index": 0,
      "tx_pointer_block_height": 0,
      "tx_pointer_tx_idx": 0,
      "owner": "6b63804cfbf9856e68e5b6e7aef238dc8311ec55bec04df774003a2c96e0418e",
      "amount": 1152921504606846976,
      "asset_id": "0000000000000000000000000000000000000000000000000000000000000000"
    }
  ],
  "messages": [],
  "contracts": [],
  "last_block": null
}

Tagalong

localhost:4000/v1/graphql is a valid endpoint, but the fuel development wallet fails to add it as an rpc endpoint.

Resolved

User error.

There was an issue with my deployment script that was not directly related to the change to snapshot. Coins were being created, but my script was not querying them correctly.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.