Skip to content

Commit

Permalink
Bump setgovheight dftx buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouzo committed Oct 31, 2024
1 parent c804196 commit e161cc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ain-dftx/src/types/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl Decodable for RawBytes {
fn consensus_decode<R: bitcoin::io::Read + ?Sized>(
reader: &mut R,
) -> Result<Self, bitcoin::consensus::encode::Error> {
let mut buf = [0u8; 512];
let mut buf = [0u8; 4096];
let v = reader.read(&mut buf)?;
Ok(Self(buf[..v].to_vec()))
}
Expand Down
2 changes: 2 additions & 0 deletions lib/ain-dftx/tests/data/setgovernanceheight.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
6a4d1b01446654786a144c505f4c4f414e5f544f4b454e5f53504c4954531c1180f0fa020000000012a0f64a0000000000190ce0360000000000205c4f13000000000021cc2a1d000000000023581416000000000024f834280000000000268c6e64000000000027587b3b00000000002850430d000000000029b8af0600000000002a54361600000000002bd4010c00000000002c18b30700000000002ddc9e0c00000000002ed82a0c00000000003550620c000000000036fcb921000000000037948d2e00000000003898401800000000003d98d71c00000000003e00ae1500000000003f80920b000000000040d4a81e000000000045ac930b000000000046305f0c000000000047785019000000000048c4d510000000000070f21a00
// {"ATTRIBUTES": {"v0/poolpairs/17/token_a_fee_pct": "0.005"},"startHeight": 1896000}
6a2b446654786a0a4154545249425554455301000000007011000000610100000020a107000000000040ee1c
// TX: 944634a0ebaecfef099460015e2e4288fbf84cd7c8d5bb8716a50bb1bd1164d9, block: 4163636
6a4d580a446654786a0a415454524942555445538e000000007021000000620100000020a1070000000000000000007021000000640800000000000000007023000000620100000020a1070000000000000000007023000000640800000000000000007024000000620100000020a1070000000000000000007024000000640800000000000000007026000000620100000020a1070000000000000000007026000000640800000000000000007027000000620100000020a1070000000000000000007027000000640800000000000000007028000000620100000020a1070000000000000000007028000000640800000000000000007029000000620100000020a107000000000000000000702900000064080000000000000000702a000000620100000020a107000000000000000000702a00000064080000000000000000702b000000620100000020a107000000000000000000702b00000064080000000000000000702c000000620100000020a107000000000000000000702c00000064080000000000000000702d000000620100000020a107000000000000000000702d00000064080000000000000000702e000000620100000020a107000000000000000000702e000000640800000000000000007035000000620100000020a1070000000000000000007035000000640800000000000000007037000000620100000020a1070000000000000000007037000000640800000000000000007038000000620100000020a107000000000000000000703800000064080000000000000000703d000000620100000020a107000000000000000000703d00000064080000000000000000703e000000620100000020a107000000000000000000703e00000064080000000000000000703f000000620100000020a107000000000000000000703f000000640800000000000000007040000000620100000020a1070000000000000000007040000000640800000000000000007045000000620100000020a1070000000000000000007045000000640800000000000000007046000000620100000020a1070000000000000000007046000000640800000000000000007047000000620100000020a1070000000000000000007047000000640800000000000000007048000000620100000020a107000000000000000000704800000064080000000000000000704d000000620100000020a107000000000000000000704d00000064080000000000000000704e000000620100000020a107000000000000000000704e00000064080000000000000000704f000000620100000020a107000000000000000000704f000000640800000000000000007050000000620100000020a1070000000000000000007050000000640800000000000000007055000000620100000020a1070000000000000000007055000000640800000000000000007056000000620100000020a1070000000000000000007056000000640800000000000000007057000000620100000020a1070000000000000000007057000000640800000000000000007058000000620100000020a107000000000000000000705800000064080000000000000000705a000000620100000020a107000000000000000000705a00000064080000000000000000705f000000620100000020a107000000000000000000705f000000640800000000000000007060000000620100000020a1070000000000000000007060000000640800000000000000007061000000620100000020a1070000000000000000007061000000640800000000000000007062000000620100000020a1070000000000000000007062000000640800000000000000007064000000620100000020a1070000000000000000007064000000640800000000000000007068000000620100000020a107000000000000000000706800000064080000000000000000706d000000620100000020a107000000000000000000706d00000064080000000000000000706e000000620100000020a107000000000000000000706e00000064080000000000000000706f000000620100000020a107000000000000000000706f000000640800000000000000007070000000620100000020a1070000000000000000007070000000640800000000000000007072000000620100000020a1070000000000000000007072000000640800000000000000007077000000620100000020a1070000000000000000007077000000640800000000000000007078000000620100000020a1070000000000000000007078000000640800000000000000007079000000620100000020a107000000000000000000707900000064080000000000000000707a000000620100000020a107000000000000000000707a0000006408000000000000000070cc000000620100000020a10700000000000000000070cc0000006408000000000000000070cd000000620100000020a10700000000000000000070cd0000006408000000000000000070ce000000620100000020a10700000000000000000070ce0000006408000000000000000070cf000000620100000020a10700000000000000000070cf0000006408000000000000000070d4000000620100000020a10700000000000000000070d40000006408000000000000000070d5000000620100000020a10700000000000000000070d50000006408000000000000000070d6000000620100000020a10700000000000000000070d60000006408000000000000000070d7000000620100000020a10700000000000000000070d70000006408000000000000000070ef000000620100000020a10700000000000000000070ef0000006408000000000000000070fe000000620100000020a10700000000000000000070fe0000006408000000000000000070ff000000620100000020a10700000000000000000070ff000000640800000000000000007000010000620100000020a1070000000000000000007000010000640800000000000000007001010000620100000020a1070000000000000000007001010000640800000000000000007002010000620100000020a1070000000000000000007002010000640800000000000000007003010000620100000020a1070000000000000000007003010000640800000000000000007004010000620100000020a1070000000000000000007004010000640800000000000000007005010000620100000020a1070000000000000000007005010000640800000000000000007006010000620100000020a1070000000000000000007006010000640800000000000000007007010000620100000020a1070000000000000000007007010000640800000000000000007008010000620100000020a1070000000000000000007008010000640800000000000000007009010000620100000020a107000000000000000000700901000064080000000000000000700a010000620100000020a107000000000000000000700a01000064080000000000000000700b010000620100000020a107000000000000000000700b010000640800000000000000007014010000620100000020a1070000000000000000007014010000640800000000b48e3f00

0 comments on commit e161cc4

Please sign in to comment.