Questions tagged [solana-test-validator]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
33 views

solana signature verification

solana transaction signature verification i proposal many method to verify signature and when ever i trigger fn result always same to "false" let node_client = RpcClient::new("https://...
deadlium's user avatar
0 votes
1 answer
40 views

Errors when trying out Confidential Transfer token extension on solana-test-validator

I am getting errors when trying the confidential transfer token extension. Followed the instructions given in the documentation. First tried it on the testnet, it worked fine till the create account ...
Soumith Basina's user avatar
0 votes
0 answers
34 views

Connection Reset Error on Solana Transactions

I'm currently facing a challenge with my Solana project, and I'm reaching out to seek your expertise. In my setup, I'm sending 4000 transactions to a cluster involving an RPC and a validator using ...
dariusjvc's user avatar
0 votes
1 answer
17 views

Request for Assistance: Retrieving Parsed Transaction Data in Rust for Solana Test Validator

Currently, I am running a Solana test validator, and it's functioning perfectly. However, I am facing a challenge when it comes to retrieving transaction data in Rust. In the "@solana/web3.js&...
deadlium's user avatar
1 vote
1 answer
31 views

NFT Minting failing on Localhost / MPL Metadata (solana-test-validator with meta clone)

I'm running a local test validator via: solana-test-validator --ledger=".anchor/test-ledger" --clone="metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" --url="https://api.mainnet-...
Simon Thomas's user avatar
0 votes
0 answers
68 views

Using Raydium locally - Address Lookup Table fails with "Transaction address table lookup uses an invalid index"

I'm trying to use the Raydium SDK locally with solana-test-validator but transactions involving the LOOKUP_CACHE defined in the SDK fail with the message SendTransactionError: failed to send ...
ChrisK's user avatar
  • 1
-1 votes
0 answers
18 views

Haw can I withdraw some solana or haw can I send in binance [closed]

Can some one help me . Thank you.I am new player new father and all than i win is for my daughters. All the best for you and your family’s.
Gledis Aliaj's user avatar
0 votes
1 answer
38 views

Localnet transaction stuck finalizing

I attempted to run my test using anchor on Localnet but got my test stuck like this ⠤ [0/1] Finalizing transaction ...
Kombi's user avatar
  • 1
3 votes
1 answer
46 views

How do I get a local debugger in a running `solana-test-validator`

I'm trying to debug an issue with the Solana JSON RPC, which I can reproduce using the solana-test-validator locally. I've built the solana-labs/solana repo locally using ./cargo build. I'm able to ...
Callum M's user avatar
  • 2,787
1 vote
1 answer
44 views

How can I monitor my validator, other than using validator logs?

I want to monitor my validator for development purpose. I want to see debug logs debug!("CUDA ECDSA for {}", valid_packet_count); debug!("allocating out.."); And this trace logs ...
Abhishek Faliya's user avatar
0 votes
0 answers
61 views

Unable to update Validator Commission

Getting stuck here trying to update a validators commission. Any help would be much appreciated solana vote-update-commission -k authorized-withdrawer-keypair.json --fee-payer validator-keypair.json ...
phillyphan's user avatar
1 vote
0 answers
107 views

not found in solana validators, however, found in solana gossip

I've been running a Solana validator, and I've noticed that my validator is not showing up when I run the 'solana validators' command. However, the 'solana gossip' command shows my validator as active....
hikari's user avatar
  • 11
0 votes
2 answers
52 views

Duplicate slot : At this point manual intervention is needed to make progress

Pruning expired primary index 0 up to slot 0 (max requested: 248834748) thread 'solReplayStage' panicked at 'We have tried to repair duplicate slot: 248834747 more than 10 times and are unable to ...
Arpit Yadav - Shyft.to's user avatar
2 votes
2 answers
56 views

Unable to run solana Hello World program in WSL

I have been following Josh's DevBox video to get started with Solana. In WSL environment, I did all the process, but at the end while executing npm run start, it comes up with Segmentation Fault. Any ...
ispostback's user avatar
1 vote
0 answers
49 views

illegal hardware instruction solana-test-validator

When running solana-test-validator on terminal I got this error. shivangrawat@shivangs-MacBook-Air solana % solana-test-validator --faucet-sol argument ignored, ledger already exists Ledger location: ...
Shivang Rawat's user avatar
0 votes
1 answer
180 views

failed: Invoked an instruction with data that is too large (12884932884 > 10240)'

failed: Invoked an instruction with data that is too large (12884932884 > 10240)' i have this error when i try run test in my anchor program, but this only using local validator when i try using ...
Jesus Silva's user avatar
2 votes
1 answer
85 views

How to clone metaplex metadata program to use with solana-test-validator

How do you set up solana-test-validator with the metaplex metadata program to run tests locally?
john's user avatar
  • 6,680
0 votes
0 answers
44 views

How can i generate my stake account?

I staked some Solana in my trusty wallet. On previous occasions it appeared in the wallet itself, but not this time. As per the transaction details my Solana has been transferred to another new ...
sam tutu's user avatar
2 votes
0 answers
30 views

Why doesnt solana-program-test work with VersionedTransaction?

Solana version = 1.16.8 rustc -V = 1.69.0 solana-cli = 1.16.8 The transaction will process successfully if it is type Transaction but not if it is type VersionedTransaction. I need to use a ...
guccimane's user avatar
1 vote
1 answer
27 views

what tx_count means in bench-tps.sh?

I've a questions, for NDEBUG=1 ./multinode-demo/bench-tps.sh --tx_count 50000 what is tx_count ? what happens if I increment or decrement this value? Because by default is 50000 but in the webpage ...
David C's user avatar
  • 13
5 votes
1 answer
49 views

Automatically include my Solana program in local validator?

Is it possible to start a local validator with my Solana program already deployed? Or do I have to do 2 separate commands? One first starting the validator, another for deploying?
Burger Bob's user avatar
  • 1,246
2 votes
1 answer
75 views

Avoid DeadlineExceeded in BPF tests

It seems that as the number of BPF tests in your program grows, the likelihood of encountering RpcError(DeadlineExceeded) errors increases as well. While using the warp_to_slot function on the ...
febo's user avatar
  • 53
4 votes
1 answer
103 views

test validator failed to start: blockstore error (on ubuntu)

While trying to run the test validator inside a ubuntu based docker container, I keep getting an error while trying to run the test validator. The error message I get when I try to run the solana-test-...
nickfrosty's user avatar
1 vote
2 answers
60 views

Computational Units used by program are variable

I have recently noticed that some of my tests were performing close to max computation units and would exceed 200,000 units used on some runs but not on others despite the tests having the same layout ...
Tanmay's user avatar
  • 13
3 votes
2 answers
212 views

How to upgrade the solana version?

I checked the solana project for a while and found that the repository is being upgraded continuously all the time. As blockchain is a state replicator machine, the validator project is already ...
Pedro Salazar's user avatar
0 votes
0 answers
44 views

How to run a multi nodes solana cluster in my local server?

I want to run a multi nodes solana cluster in my local server, for example, a bootstrap validator with rpc port 8899 and web socket port 8900, and then an additional validator with rpc port 8901 and ...
Shizheng's user avatar
2 votes
2 answers
183 views

How can an account ever allocate 10mb if the heap size is only 32kb?

I've an account like this: #[account] #[derive(Default, InitSpace)] pub struct Blacklist { pub access_controller: Pubkey, #[max_len(318)] // that touches realloc limit 10KB ...
Sarfaraz Nawaz's user avatar
2 votes
1 answer
107 views

Solana Node syncing issue

I have setup a solana node on my ubuntu server , I am using devnet Url in my solana config file , on cli it is showing correct block-height transactions-count and everything is working according to ...
Muhammad Humza Arshad's user avatar
3 votes
1 answer
354 views

Solana-Test-Validator not working

I am currently trying to learn the basics of Solana Smart Contracts and therefore tried the hello world program. Because I am on Windows, I downloaded Ubuntu on WSL 2. I downloaded Solana-CLI v1.14.18 ...
JMV's user avatar
  • 51
1 vote
1 answer
59 views

Solana bootstrap-validator cannot run as expected when create a local cluster

I follow the instructions of Benchmark a Cluster (https://docs.solana.com/cluster/bench-tps). After I executed this line: NDEBUG=1 ./multinode-demo/bootstrap-validator.sh, according to the ...
Shizheng's user avatar
0 votes
0 answers
56 views

solana-test-validator RocksDB problem

I'm using solana-test-validator and over time the test-ledger folder starts to weigh a lot. I wanted to know how I could reduce that weight or if it can be compressed
Perez Perez Arturo Daniel's user avatar
2 votes
1 answer
80 views

My hard drive is full when running solana-test-validator

My hard drive is full when running solana-test-validator. I run it on wsl2 on window. Has anyone had this problem and how to fix it? Thanks
trungbaotran1701's user avatar
3 votes
1 answer
49 views

Where can I find ic_msg logs?

I’m writing a native program and I’m using the ic_msg macro with the solana_test_validator binary, but I can’t seem to find the log messages. Where do the ic_msg logs go? Do I need to configure ...
Kevin Ji's user avatar
  • 185
4 votes
2 answers
106 views

How can I tell securely which cluster I am connected to?

I'd like my wallet to be able to tell securely which cluster I am connected to (mainnet-beta, testnet, devnet), from on-chain information. I see a few opportunities with getClusterNodes: From a first ...
Tiago A's user avatar
  • 41
0 votes
1 answer
61 views

Mac M1 Max `anchor test --skip-local-validator` infinite looop

I'm running solana v1.13.7 locally for solana-test-validator on my Mac M1 Max (13.3). You can see my left terminal has the local test validator is running on port 8899. The right side, I am running ...
AceGravity's user avatar
1 vote
1 answer
117 views

Illegal instruction (Mac M1 Max 13.3)

I've scoured discord and stack exchange but haven't found any solution that works for me. When I run a local validator (Solana test validator built from source), I get error: Ledger location: test-...
AceGravity's user avatar
0 votes
0 answers
29 views

How do you start a local validator using a historical snapshot?

How to start a local validator from a historical snapshot (eg snapshot-1234-xxxx.tar.zst)? My goal is to be able to inspect the state of that snapshot.
the-fool's user avatar
3 votes
1 answer
225 views

Can't run Anchor test with the basic project

I just created an Anchor project with anchor init and tried to run anchor test but it didn't work. I always get the error: Unable to get latest blockhash. Test validator does not look started. Check ....
Lano's user avatar
  • 153
1 vote
1 answer
462 views

SOL transfer fee calculation

I experience a strange behavior of the SOL transfer. I use Typescript @solana/web3.js client that do SOL transfer from local wallet filled with SOLs automatically at solana-test-validator start. Then ...
chalda's user avatar
  • 432
3 votes
1 answer
89 views

What are the primary differences between solana-validator and solana-test-validator?

There seems to be two different validator binaries: solana-validator in validator/src/main.rs, and solana-test-validator in validator/src/bin/solana-test-validator.rs. What are the main differences ...
Kevin Ji's user avatar
  • 185
0 votes
1 answer
44 views

How to identify the mechanism that makes the program read only data (content of .rodata section) starting address to be 0x100000000 during execution?

Quoting the Solana documentation [1]; The virtual address memory map used by Solana BPF programs is fixed and laid out as follows Program code starts at 0x100000000 Stack data starts at 0x200000000 ...
dsauvage's user avatar
2 votes
1 answer
247 views

How to fix "ELF error: Relative jump out of bounds at instruction" on example-helloworld deploy (target sbf-solana-solana cpu sbfv2)?

We are using the latest Solana monorepo [1] and our goal is to run the Solana example-helloworld [2] Using sbf-solana-solana target and sbfv2 CPU. First, we patched programs/bpf_loader/src/syscalls/...
dsauvage's user avatar
0 votes
1 answer
490 views

Hello there, I'm wanting to setup a Solana RPC node, could anyone please tell me where I can find docs or any helpful material?

I was using Quicknode in my site, although there is a huge traffic incoming & I think Quicknode wont be able to sustain. Would like to create my own node endpoint.
Abe Speece's user avatar
1 vote
1 answer
68 views

How to fix 'ELF error: Dynamic stack frames detected but not enabled' while running the Solana helloworld example C program using SBF v2 processor?

using solana sdk 1.14.11 [1], my goal is to execute the Solana helloworld example C program [2] using the SBF v2 processor [3] on the local solana-test-validator. When deploying the program locally, ...
dsauvage's user avatar
2 votes
1 answer
52 views

Run a certain command when Solana test validator starts

Good day! I am currently running a program where I wish to create an SPL token and utilize it on my frontend. However, when I start up the test validator, I wish to also be able to run a file that ...
Aengus's user avatar
  • 147
4 votes
1 answer
368 views

How to shutdown a local test validator?

TLDR; How to shutdown a solana-test-validator running in the background? A test I'm running starts a validator with the command solana-test-validator --reset \ -q \ --mint ...
Henry E's user avatar
  • 2,991
4 votes
1 answer
83 views

RPC method getTransaction fails on localhost using versioned Transaction

I'm not sure why this error occurs when I'm trying to getTransaction. curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d ' { "jsonrpc": "2.0&...
Swaroop Maddu's user avatar
2 votes
1 answer
33 views

Does testing through ProgramTestContext have any disadvantage over `solana-test-validator`?

solana-test-validator is basically a full validator run locally. ProgramTestContext looks more light-weight. Does testing through ProgramTestContext skip any checks compared to solana-test-validator?
itsfarseen's user avatar
0 votes
1 answer
45 views

Is it possible to do getProgramAccounts using ProgramTestContext?

I am trying to speed up my tests by switching from using a local test validator to using ProgramTestContext. This will let me execute multiple tests in parallel where each one has its own instance of ...
itsfarseen's user avatar
3 votes
1 answer
299 views

Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL failed: incorrect program id for instruction

i deployed a solana native program on the local test validator and writing a small python script to test it, my python script that's causing the error from solana.rpc.api import Client from spl.token....
AD DAB's user avatar
  • 31