Questions tagged [runtime]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

Are Tx process parallel? How are the account data guaranteed not overrided each other by simultaneous Tx?

As stated in title. Does runtime sort all input account an add mutex-locker to those accounts that are mutable?
breeze wang's user avatar
0 votes
1 answer
55 views

How is The Transaction processed on the blockchain side in solana?

I am trying to understand solana code for our project. So when we create an instruction it will be converted into the message(HERE) . and into a transaction and sent over the chain. Then it will be in ...
Abhishek Faliya's user avatar
2 votes
1 answer
107 views

Source of slot_hash and current timestamp on chain

I know the Clock and Slothashes sysvars return a current timestamp and history of slot hashes, but my question is where this data comes from? Is this the timestamp that correlates to the latest ...
kwelliott's user avatar
  • 504
1 vote
0 answers
135 views

Anchor Error: InstructionDidNotDeserialize

I was following this tutorial: "Build a TikTok Web 3.0 Blockchain App with Solana" and got around the 2:50:00 timestamp when I tried adding a TikTok, and it gave me this error: Then I ...
rust duck's user avatar
2 votes
1 answer
65 views

Best Approach to overcome stack size limitation for ZK-Proof verification

I'm working on designing ZK-STARK rollups for Solana - by deploying a general purpose stark verifier on solana. A typical proof is around ~50KB. What would be the most efficient approach to write the ...
rumika howdie's user avatar
1 vote
1 answer
36 views

Is it safe to assume that the program_id passed via the solana runtime Entrypoint cannot be Forged

I am writing a program of which I cannot know the program ID ahead of time for several non-trivial reasons. I am curious whether or not it is safe to assume the safety of the program_id passed via the ...
Cyrial Kamda's user avatar
4 votes
1 answer
500 views

Does a PDA have to be owned by its signer?

Typically, when one creates a PDA, both the signing program and the owning program are the same. You have an account owned by Program A, such that: Only Program A can sign for this PDA, and Only ...
HelmetFace's user avatar
  • 1,677
2 votes
1 answer
190 views

How to get result of a previous instruction within a transaction

How could we get the result of a previous instruction within a transaction with multiple instructions? Say we are swapping a token on an AMM and so we are uncertain of the amount of tokens we are ...
guillermo's user avatar
2 votes
1 answer
17 views

Does Solana have additional aligment guarantees on `data` field of AccountInfo?

data field of Solana account is a byte slice, according to type system it is byte-aligned. Does runtime internally use more strict alignment rules? i.e. can I rely on the assumption, that data field ...
totikom's user avatar
  • 365
2 votes
1 answer
79 views

Is executing `SystemProgram.createAccount` and `Token. InitializeAccount` in different transactions considered safe?

Solana Docs for the Token program state that: It's important to note that the InitializeAccount instruction does not require the Solana account being initialized also be a signer. The ...
eRunner's user avatar
  • 226
0 votes
1 answer
75 views

Some quick yes/no questions regarding Solana transaction validation process [closed]

What My End Game Is I'm trying to understand what the fastest way to execute a transaction on the Solana chain is. From reading the Solana docs, I have some guesses, but need confirmation from anyone :...
JoeVictor's user avatar
  • 111
0 votes
1 answer
40 views

Runtime Error: "InvalidRentPayingAccount" [closed]

Why am I getting this error? This is the runtime error version of Can you create accounts with less lamports than the rent-exempt minimum?
Lando's user avatar
  • 140