Errore:Implementazione del programma non riuscita simulazione della transazione non riuscita: Errore durante l'elaborazione dell'Istruzione 0: dati dell'account troppo piccoli per l'istruzione [3 messaggi di log]
Dovrai estendere la dimensione del tuo programma, se hai apportato modifiche. Questo è possibile dalla versione CLI 1.18 > Per risolvere, esegui solana program extend PROGRAM_ADDRESS_HERE 20000 -u d -k ~/.config/solana/i...
Ordini target opzionali sulle istruzioni di vendita di Raydium?
Sì, l'account amm_target_orders è commentato e quindi non è necessario per chiamare l'istruzione swap_base_out. Poiché il Raydium AMM è open source, puoi verificarlo tramite il codice sorgente: ... let amm_open_orders_i...
Come posso deserializzare l'account nel frontend Rust?
Il problema con il #[max_len(32)] mancante è che l'account serializzato contiene una stringa riempita con byte 0 per raggiungere 32 byte, mentre la struct di deserializzazione tenta di deserializzare solo la lunghezza ef...
Best practice di autorizzazione Solana/Anchor per un sistema modulare multi-programma (ruoli condivisi tra programmi, CPI)
Il repo sembra essere privato: Ognuna delle opzioni ha i suoi pro e contro, quindi puoi creare un'implementazione ibrida per mitigare; ecco alcune delle applicazioni multi-programma che puoi adottare: Marinade Finance:...
Errore di vincolo Mut su Raydium
Dopo molte difficoltà e continui passaggi tra 100 LLM, ho finalmente trovato il problema. Il problema era che il mio contratto stesso generava i tipi di account di input da un IDL obsoleto di Launchlab, dove writable: tr...
aiuto nella nuova versione di pinocchio
Pinocchio non ha funzioni di supporto per validare questi nella versione più recente o in qualsiasi versione. Dato che hai menzionato che lo stai facendo per blueshift, anche lì vengono implementati manualmente.
InstructionFallbackNotFound. Numero di errore: 101. Messaggio di errore: Le funzioni di fallback non sono supportate
Devi fornire l'instruction discriminator ai dati della tua transazione come ha menzionato Ademola. Quello che puoi fare è recuperare l'instruction discriminator e poi aggiungerlo ai tuoi dati nei primi 8 byte. Recupera l...
Le catene di 26 transazioni non confermate sono vietate dal wallet in Bitcoin Core 31.0?
Puoi avere una catena più lunga di 25 transazioni non confermate nella mempool, ma il wallet applica comunque un limite di 25 transazioni per catena. Eseguendo bitcoind -help-debug: ... -limitdescendantcount= Impostazi...
Che cos'è INIT_CODE_HASH e come viene calcolato / utilizzato nei contratti intelligenti DeFi
L'hash del codice di inizializzazione è fondamentalmente l'hash keccak256 del bytecode del contratto. Utilizzo del codice di inizializzazione L'hash del codice di inizializzazione è necessario "Poiché il calcolo dell'in...
Perché la liquidità concentrata è efficiente in termini di capitale?
La liquidità concentrata è più efficiente in termini di capitale perché, con una maggiore concentrazione, la stessa quantità di token investiti crea una maggiore profondità di liquidità. Dal blog di Uniswap: Concentrand...
Curve Voting Escrow Explanations
The Curve DAO whitepaper was very helpful for me for understanding the code, I really recommend starting with it: https://curve.fi/files/CurveDAO.pdf Specifically this part:
What is DeFi decentralized finance?
Decentralized Finance (DeFi) is the movement that leverages decentralized networks to transform old financial products into trustless and transparent protocols that run without intermediaries. Some may prefer to call D...
Why do these two Ethereum transactions have different gas usages? Can't explain it from the GETH EVM debug traces
One of the reason for the gas cost not being the same would be that one account did not have any usdc before the transaction and the other already had some. It cost more gas to set a 0 value to non zero than non zero to...
Can ACINQ (Phoenix wallet peer) steal my funds during a recovery?
Nothing. If you have lost the last state and are recovering it from your peer then you are trusting it, no matter if it's encrypted or not. They could lie and continue operating (or close) from a state of the channel in...
Is it safe to use a private key for an existing singlesig wallet as one of the keys for a new multisig wallet?
The single-sig wallet will still work. Each key can be used in multiple wallets (singlesig or multisig) without interfering with the others. However, for a more secure multisig setup, it's usually better to generate sepa...
What does it mean that the security of Bitcoin public keys and 256-bit ECDSA is 128 bits?
What does it mean that the security of 256-bit ECDSA, and therefore Bitcoin keys, is 128 bits? I mean, if I have approximately 2^256 possible points on the elliptic curve (thus possible public keys), and therefore privat...
Can a blockchain's transactions be reversed?
No, as far as we know, Ethereum transactions cannot be reversed. The DAO hack exploited a badly coded smart contract. The smart contract runs on top of Ethereum, so there are two layers involved here: the Ethereum blo...
Receiving donation on a bitcoin address and security issues of reusing the same address
For a blog that only receives occasional small amounts you probably shouldn't worry too much about it. However, if you plan to scale up, here are some things to consider: One issue with using the same address for all tr...
How can vulnerabilites in bitcoin be responsibly reported?
Information on current (ie, not past/public/resolved) security issues should be sent to the private [email protected] mailing list. The SourceForge list is now obsolete and defunct. If you're using t...
Is 24 words seed safer than 12 words in terms of bruteforcing the private key
Regardless of whether you have a passphrase or not 12 words is just as secure as 24 words because the resulting public key will still require 2^128 iterations to compute its private key using the most efficient algorithm...