ข้อผิดพลาด: การปรับใช้โปรแกรมล้มเหลว การจำลองธุรกรรมล้มเหลว: เกิดข้อผิดพลาดในการประมวลผลคำสั่ง 0: ข้อมูลบัญชีเล็กเกินไปสำหรับคำสั่ง [ข้อความบันทึก 3 รายการ]
คุณจะต้องขยายขนาดโปรแกรมของคุณ หากคุณได้ทำการเปลี่ยนแปลงกับมัน ซึ่งสามารถทำได้จาก CLI เวอร์ชัน 1.18 > เพื่อแก้ไขปัญหานี้ ให้รัน solana program extend PROGRAM_ADDRESS_HERE 20000 -u d -k ~/.config/solana/id.json คำสั่งข้า...
ตัวเลือกคำสั่งเป้าหมายเป็นทางเลือกในคำแนะนำการขายของ Raydium หรือไม่?
ใช่ บัญชี amm_target_orders ถูกคอมเมนต์ไว้ ดังนั้นจึงไม่จำเป็นต้องเรียกคำสั่ง swap_base_out เนื่องจาก Raydium AMM เป็นโอเพนซอร์ส คุณสามารถยืนยันได้ผ่านซอร์สโค้ด: ... let amm_open_orders_info = next_account_info(account_...
ฉันจะดีซีเรียลไลซ์บัญชีใน Rust frontend ได้อย่างไร
ปัญหาเกี่ยวกับ #[max_len(32)] ที่หายไปคือบัญชีที่ถูก serialize มีสตริงที่เติม 0 ไบต์เพื่อให้ครบ 32 ไบต์ ในขณะที่ struct ที่ทำ deserialize พยายาม deserialize เพียงเท่าความยาวจริงของสตริงของคุณ แล้วไบต์ 0 ที่เหลือจะทำให้กา...
แนวปฏิบัติที่ดีที่สุดสำหรับการอนุญาตสิทธิ์บน Solana/Anchor สำหรับระบบหลายโปรแกรมแบบโมดูลาร์ (บทบาทที่ใช้ร่วมกันระหว่างโปรแกรม, CPI)
Repo ดูเหมือนจะเป็นแบบส่วนตัว: ตัวเลือกแต่ละแบบมีข้อดีและข้อเสีย ดังนั้นคุณสามารถสร้างการใช้งานแบบไฮบริดเพื่อลดความเสี่ยง นี่คือตัวอย่างแอปพลิเคชันหลายโปรแกรมที่คุณสามารถนำมาใช้ได้: Marinade Finance: ใช้โปรแกรมแกนหลักเด...
ข้อผิดพลาด Mut constraint บน Raydium
หลังจากต่อสู้และสลับไปมาระหว่าง LLM 100 ตัว ในที่สุดฉันก็พบปัญหานี้ ปัญหาคือสัญญาของฉันเองกำลังสร้างประเภทบัญชีอินพุตจาก IDL ที่ล้าสมัยของ Launchlab ซึ่ง writable: true ไม่ได้ถูกตั้งค่าไว้ ฉันสันนิษฐานว่ามันไม่สำคัญเพราะ...
ช่วยในเวอร์ชันใหม่ของพินอคคิโอ
Pinocchio ไม่มีฟังก์ชันช่วยสำหรับตรวจสอบสิ่งเหล่านี้ในเวอร์ชันล่าสุดหรือเวอร์ชันใด ๆ เนื่องจากคุณกล่าวว่าคุณทำสิ่งนี้สำหรับ blueshift ที่นั่นพวกเขาก็ใช้งานสิ่งเหล่านี้ด้วยตนเองเช่นกัน
ไม่พบคำแนะนำสำรอง หมายเลขข้อผิดพลาด: 101 ข้อความข้อผิดพลาด: ไม่รองรับฟังก์ชันสำรอง
คุณต้องระบุ instruction discriminator ให้กับ data ของ transaction ของคุณตามที่ Ademola ได้กล่าวไว้ สิ่งที่คุณสามารถทำได้คือดึง instruction discriminator แล้วต่อท้ายเข้ากับ data ของคุณใน 8 ไบต์แรก ดึง Instruction Discrimi...
เชนของธุรกรรมที่ยังไม่ได้รับการยืนยันจำนวน 26 รายการถูกห้ามโดยกระเป๋าเงินใน Bitcoin Core 31.0 หรือไม่
คุณสามารถมีเชนที่ยาวกว่า 25 ธุรกรรมที่ยังไม่ยืนยันใน mempool ได้ แต่กระเป๋าเงินยังคงบังคับใช้ขีดจำกัดเชน 25 ธุรกรรม จากการรัน bitcoind -help-debug: ... -limitdescendantcount= การตั้งค่าที่เลิกใช้แล้วเพื่อไม่ยอมรับธุรกร...
INIT_CODE_HASH คืออะไร และคำนวณ / ใช้งานอย่างไรในสัญญาอัจฉริยะ DeFi
Init code hash โดยพื้นฐานแล้วคือแฮช keccak256 ของ bytecode ของสัญญา การใช้งาน Init Code Init code hash มีความจำเป็น "เนื่องจาก การคำนวณที่อยู่ขึ้นอยู่กับการแฮช init code. Init code คือโค้ดที่เมื่อถูกเรียกใช้งาน จะสร้าง...
ทำไมสภาพคล่องแบบกระจุกตัวจึงใช้ทุนอย่างมีประสิทธิภาพ?
สภาพคล่องแบบกระจุกตัวมีประสิทธิภาพด้านทุนมากกว่า เพราะเมื่อการกระจุกตัวเพิ่มขึ้น จำนวนโทเคนที่ลงทุนเท่าเดิมจะสร้างความลึกของสภาพคล่องได้มากกว่า จากบล็อกของ Uniswap: ด้วยการกระจุกตัวสภาพคล่อง ผู้ให้สภาพคล่อง (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...