Ralat:Gagal menggunakan program transaksi simulasi gagal: Ralat memproses Arahan 0: data akaun terlalu kecil untuk arahan [3 mesej log]
Anda perlu memanjangkan saiz program anda, jika anda membuat perubahan padanya. Ini boleh dilakukan dari CLI versi 1.18 > Untuk membaikinya jalankan solana program extend PROGRAM_ADDRESS_HERE 20000 -u d -k ~/.config/sola...
Pilihan pesanan sasaran pada arahan jualan Raydium?
Ya, akaun amm_target_orders dikomentarkan dan oleh itu tidak diperlukan untuk memanggil arahan swap_base_out. Memandangkan Raydium AMM adalah sumber terbuka, anda boleh mengesahkan ini melalui kod sumber: ... let amm_op...
Bagaimanakah saya boleh nyahserialisasi akaun dalam fronted Rust?
Isu dengan #[max_len(32)] yang hilang ialah akaun bersiri mengandungi string yang dipadatkan dengan 0 bait untuk menjadikannya 32 bait, manakala struct penyahserialan cuba menyahserialkan hanya sepanjang string anda sebe...
Amalan terbaik kebenaran Solana/Anchor untuk sistem berbilang program modular (peranan dikongsi merentas program, CPI)
Repo nampaknya peribadi: Mana-mana pilihan mempunyai kebaikan dan keburukan masing-masing jadi anda boleh cipta pelaksanaan hibrid untuk mengurangkan risiko, berikut adalah beberapa aplikasi berbilang program yang boleh...
Ralat kekangan Mut pada Raydium
Selepas banyak bergelut dan bertukar antara 100 LLM, akhirnya saya menemui isu tersebut. Isu tersebut ialah kontrak saya sendiri menjana jenis akaun input daripada IDL Launchlab yang sudah lapuk, di mana writable: true t...
bantuan dalam versi baharu pinocchio
Pinocchio tidak mempunyai fungsi pembantu untuk mengesahkan perkara ini dalam versi terkini atau mana-mana versi. Memandangkan anda menyebut anda melakukan ini untuk blueshift, di sana mereka juga melaksanakannya secara...
InstructionFallbackNotFound. Nombor Ralat: 101. Mesej Ralat: Fungsi fallback tidak disokong
Anda perlu memberikan instruction discriminator pada data transaksi anda seperti yang telah disebut oleh Ademola. Apa yang boleh anda lakukan ialah ambil instruction discriminator kemudian tambahkan pada data anda dalam...
Adakah rantaian 26 transaksi yang belum disahkan dilarang oleh wallet dalam Bitcoin Core 31.0?
Anda boleh mempunyai rantaian yang lebih panjang daripada 25 transaksi belum disahkan dalam mempool, tetapi wallet masih menguatkuasakan had rantaian 25 transaksi. Daripada menjalankan bitcoind -help-debug: ... -limitde...
Apakah INIT_CODE_HASH dan bagaimana ia dikira / digunakan dalam kontrak pintar DeFi
Init code hash pada asasnya ialah hash keccak256 bagi bytecode kontrak. Penggunaan Init Code Init code hash diperlukan "Oleh kerana pengiraan alamat bergantung pada hashing init code. Init code ialah kod yang, apabila d...
Mengapa kecairan tertumpu adalah cekap modal?
Liquidity tertumpu adalah lebih cekap modal kerana dengan peningkatan penumpuan, jumlah token yang sama dilaburkan mencipta kedalaman liquidity yang lebih besar. Dari blog Uniswap: Dengan menumpukan liquidity mereka, LP...
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...