<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Developers Forum for XinFin XDC Network: Anil Gautam Saravade</title>
    <description>The latest articles on Developers Forum for XinFin XDC Network by Anil Gautam Saravade (@swapsstyle).</description>
    <link>https://www.xdc.dev/swapsstyle</link>
    <image>
      <url>https://www.xdc.dev/images/8gnfJUq6ZHj36MnzesQh0PYx7XAnbFtS-QgZxNL885I/rs:fill:90:90/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL3VzZXIvcHJv/ZmlsZV9pbWFnZS82/MTEyL2UzNmZhMzRj/LWYxZWYtNGFhNS1i/Y2I5LTRiOGZmOGE3/MzhjYy5qcGc</url>
      <title>Developers Forum for XinFin XDC Network: Anil Gautam Saravade</title>
      <link>https://www.xdc.dev/swapsstyle</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.xdc.dev/feed/swapsstyle"/>
    <language>en</language>
    <item>
      <title>[v2.7.0-beta] panic: runtime error: invalid memory address or nil pointer dereference</title>
      <dc:creator>Anil Gautam Saravade</dc:creator>
      <pubDate>Tue, 12 May 2026 13:51:13 +0000</pubDate>
      <link>https://www.xdc.dev/swapsstyle/v270-beta-panic-runtime-error-invalid-memory-address-or-nil-pointer-dereference-c00</link>
      <guid>https://www.xdc.dev/swapsstyle/v270-beta-panic-runtime-error-invalid-memory-address-or-nil-pointer-dereference-c00</guid>
      <description>&lt;p&gt;&lt;strong&gt;Environment:-&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Node version: v2.7.0-testnet-b1566012&lt;/li&gt;
&lt;li&gt;Testnet: Apothem&lt;/li&gt;
&lt;li&gt;Snapshot used: &lt;a href="https://rpc.xdc.network/snapshots/testnet/full/testnet_full_latest.tar"&gt;https://rpc.xdc.network/snapshots/testnet/full/testnet_full_latest.tar&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Peers added: &lt;a href="https://github.com/XinFinOrg/XinFin-Node/blob/master/testnet/bootnodes.list"&gt;https://github.com/XinFinOrg/XinFin-Node/blob/master/testnet/bootnodes.list&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Running in Docker compose&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After adding the peers, block synchronization starts but containers restarts after a few seconds with below errors. Below are the logs from my node:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Logs:-&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
root@xdc-testnet-2:/home/ubuntu# docker exec -it xdc bash
2bc3d8a3ae11:/work# XDC --version
XDC version 2.7.0-testnet-b1566012

INFO [05-12|13:42:03.640] Block synchronisation started
INFO [05-12|13:42:09.844] Allocated fast sync bloom                size=1024.00KiB
INFO [05-12|13:42:09.844] Initialized fast sync bloom              items=0 errorrate=0.000 elapsed="1.683µs"
INFO [05-12|13:42:10.901] Imported new state entries               count=211 elapsed="2.084µs" processed=8787 pending=3366 retry=0 duplicate=0 unexpected=0
INFO [05-12|13:42:12.626] Imported new state entries               count=619 elapsed="100.329µs" processed=9406 pending=6279 retry=0 duplicate=0 unexpected=0
INFO [05-12|13:42:12.894] Imported new state entries               count=353 elapsed="436.915µs" processed=9759 pending=6484 retry=0 duplicate=0 unexpected=0
INFO [05-12|13:42:12.967] Imported new state entries               count=142 elapsed="305.437µs" processed=9901 pending=6548 retry=0 duplicate=0 unexpected=0
INFO [05-12|13:42:13.083] [HookPenalty] Find a node do not create any block addr=xdc1A1b58D133eFFb6BA1631dA7297D8CD58f65FA73
INFO [05-12|13:42:13.083] [HookPenalty] Find a node do not create any block addr=xdcB5e5acAb644DCbdf64103af723be8D62CCEc76f4
INFO [05-12|13:42:13.083] [HookPenalty] get previous penalty node and add into comeback list addr=xdc8d9532faf1690DD03B4822b6953052FE597231a6
INFO [05-12|13:42:13.083] [HookPenalty] get previous penalty node and add into comeback list addr=xdc93EeA33bc34371Ad5fe0e5741199BF8e038aD19b
INFO [05-12|13:42:13.083] [HookPenalty] get previous penalty node and add into comeback list addr=xdceBB849CFe83c46C68bA4C2D6F07a16bCa991ea79
INFO [05-12|13:42:13.083] [HookPenalty] get previous penalty node and add into comeback list addr=xdcCe04AE211D19b8138C7783964aaa1F7ADdd22275
INFO [05-12|13:42:13.083] [HookPenalty] get previous penalty node and add into comeback list addr=xdc32fB028453207699d7C15BB66377BCf9B29fB0fc
INFO [05-12|13:42:13.083] [HookPenalty] get previous penalty node and add into comeback list addr=xdcFCDcD51159092E923a3011F626F99228923830F1
INFO [05-12|13:42:13.083] [HookPenalty] get previous penalty node and add into comeback list addr=xdc11e75CFf00B1E9e9a7c8B3d069E908713Ed3e049
INFO [05-12|13:42:13.083] [HookPenalty] get previous penalty node and add into comeback list addr=xdc8EbE9B0CE09105714E6a006d751fAF45C435570b
INFO [05-12|13:42:13.083] [HookPenalty] get previous penalty node and add into comeback list addr=xdcD03da188Bb791eF1DFc7638302B51A6a30EE83fc
INFO [05-12|13:42:13.083] [HookPenalty] get previous penalty node and add into comeback list addr=xdc20aE82dC469De249C6814Af6c71f5617621fE92D
INFO [05-12|13:42:13.083] [HookPenalty] get previous penalty node and add into comeback list addr=xdc42e490E0c04F1be8c8cb9b76f630BF97F662169D
INFO [05-12|13:42:13.083] [HookPenalty] get previous penalty node and add into comeback list addr=xdcDa133dA5981bf90E51c35E9Dfe5B9f604d65cE47
INFO [05-12|13:42:13.083] [HookPenalty] get previous penalty node and add into comeback list addr=xdce60986D35497291dde76c066Df27D56F153cBF06
INFO [05-12|13:42:13.083] [HookPenalty] get previous penalty node and add into comeback list addr=xdce65F06590eE4ED6D814309e5fA014B642b9272Bd
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x65d6a0]

goroutine 739 [running]:
github.com/XinFinOrg/XDPoSChain/core/types.(*Block).Transactions(0xb34b3aa92a49e74e?)
    /builder/core/types/block.go:341
github.com/XinFinOrg/XDPoSChain/eth.New.AttachConsensusV2Hooks.func6({0x182ea88, 0xc000212bd0}, 0xc009a60dc0, {0x91, 0x8f, 0xba, 0x1b, 0xbb, 0x65, 0x69, ...}, ...)
    /builder/eth/hooks/engine_v2_hooks.go:126 +0xf77
github.com/XinFinOrg/XDPoSChain/consensus/XDPoS/engines/engine_v2.(*XDPoS_v2).calcMasternodes(0xc0001bc420, {0x182ea88, 0xc000212bd0}, 0xc009a60dc0, {0x86, 0x4a, 0xd0, 0xa4, 0x68, 0x3e, ...}, ...)
    /builder/consensus/XDPoS/engines/engine_v2/engine.go:1117 +0x188
github.com/XinFinOrg/XDPoSChain/consensus/XDPoS/engines/engine_v2.(*XDPoS_v2).verifyHeader(0xc0001bc420, {0x182ea88, 0xc000212bd0}, 0xc009a70288, {0xc001fa7808, 0x0, 0xa?}, 0x0)
    /builder/consensus/XDPoS/engines/engine_v2/verifyHeader.go:135 +0xd97
github.com/XinFinOrg/XDPoSChain/consensus/XDPoS/engines/engine_v2.(*XDPoS_v2).VerifyHeaders.func1()
    /builder/consensus/XDPoS/engines/engine_v2/engine.go:585 +0x136
created by github.com/XinFinOrg/XDPoSChain/consensus/XDPoS/engines/engine_v2.(*XDPoS_v2).VerifyHeaders in goroutine 619
    /builder/consensus/XDPoS/engines/engine_v2/engine.go:583 +0x105
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Any suggestions on how to fix it?&lt;/p&gt;

</description>
    </item>
    <item>
      <title>[2.6.4-beta] debug_traceBlockByNumber showing execution reverted</title>
      <dc:creator>Anil Gautam Saravade</dc:creator>
      <pubDate>Fri, 22 Aug 2025 07:26:01 +0000</pubDate>
      <link>https://www.xdc.dev/swapsstyle/264-beta-debugtraceblockbynumber-showing-execution-reverted-k2l</link>
      <guid>https://www.xdc.dev/swapsstyle/264-beta-debugtraceblockbynumber-showing-execution-reverted-k2l</guid>
      <description>&lt;p&gt;Hi, I am running XDC testnet nodes with 2.6.4-beta version. When I execute debug_traceBlockByNumber method I get execution reverted for 2 out of 3, but all 3 show success on the explorer.&lt;/p&gt;

&lt;p&gt;Any suggestions how to fix this issue?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://testnet.xdcscan.com/block/72659773"&gt;https://testnet.xdcscan.com/block/72659773&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -s --location 'http://127.0.0.1:8545' \
--header 'Content-Type: application/json' \
--data '{
    "method": "debug_traceBlockByNumber",
    "params": [
        "0x454B33D",
        {
            "tracer": "callTracer"
        }
    ],
    "id": 1,
    "jsonrpc": "2.0"
}' | jq
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "result": {
        "type": "CALL",
        "from": "0x3c54b39dbe87be2937dd7746263c68791c3a240a",
        "to": "0xdaee6b91a1dcabb5aabcf968f117c7553c2e3abb",
        "value": "0x0",
        "gas": "0x296a8",
        "gasUsed": "0xc62b",
        "input": "0x0adcf464000000000000000000000000f12c10df5c61592dc0f0c65b283552b45d1d9a9e00000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000001762ad5cff508fcbdb84986bdb82966194d2db22f922369986490087a18bbc3dd000000000000000000000000000000000000000000000000000000000000000142a7f1c2030343f2d0c6c9e59e896ecbc391ce5730d3dedfbc8860d37630d09e",
        "output": "0x",
        "calls": [
          {
            "type": "STATICCALL",
            "from": "0xdaee6b91a1dcabb5aabcf968f117c7553c2e3abb",
            "to": "0x0000000000000000000000000000000000000001",
            "gas": "0x26fe8",
            "gasUsed": "0xbb8",
            "input": "0xf45bdb1560f9bee2a03c35e6c1dd530eb5d7df6e3c4add38314f206c56c92f60000000000000000000000000000000000000000000000000000000000000001c762ad5cff508fcbdb84986bdb82966194d2db22f922369986490087a18bbc3dd42a7f1c2030343f2d0c6c9e59e896ecbc391ce5730d3dedfbc8860d37630d09e",
            "output": "0x000000000000000000000000e64f4d6b1283363975374351057a244bf0cc08ea"
          },
          {
            "type": "CALL",
            "from": "0xdaee6b91a1dcabb5aabcf968f117c7553c2e3abb",
            "to": "0xf12c10df5c61592dc0f0c65b283552b45d1d9a9e",
            "value": "0x38d7ea4c68000",
            "gas": "0x571c",
            "gasUsed": "0x0",
            "input": "0x",
            "output": "0x"
          }
        ]
      }
    },
    {
      "result": {
        "type": "CALL",
        "from": "0x3c54b39dbe87be2937dd7746263c68791c3a240a",
        "to": "0xdaee6b91a1dcabb5aabcf968f117c7553c2e3abb",
        "value": "0x0",
        "gas": "0x296a8",
        "gasUsed": "0x341c",
        "input": "0x0adcf464000000000000000000000000f12c10df5c61592dc0f0c65b283552b45d1d9a9e00000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000130e2819e6ec6b41b31967b4c8853d37cd2841e64293da01046b679e9175842d500000000000000000000000000000000000000000000000000000000000000014f1dc491648cb2a819363251dfa702c3041934fdb04d03fc52b059b1f5e57780",
        "output": "0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000195369676e6572206d75737420626520746865206f776e65722e00000000000000",
        "error": "execution reverted",
        "calls": [
          {
            "type": "STATICCALL",
            "from": "0xdaee6b91a1dcabb5aabcf968f117c7553c2e3abb",
            "to": "0x0000000000000000000000000000000000000001",
            "gas": "0x26fe8",
            "gasUsed": "0xbb8",
            "input": "0xf45bdb1560f9bee2a03c35e6c1dd530eb5d7df6e3c4add38314f206c56c92f60000000000000000000000000000000000000000000000000000000000000001c30e2819e6ec6b41b31967b4c8853d37cd2841e64293da01046b679e9175842d54f1dc491648cb2a819363251dfa702c3041934fdb04d03fc52b059b1f5e57780",
            "output": "0x000000000000000000000000f7b482cf6b370a803173ae4560f73c972c4fb26c"
          }
        ]
      }
    },
    {
      "result": {
        "type": "CALL",
        "from": "0x3c54b39dbe87be2937dd7746263c68791c3a240a",
        "to": "0xdaee6b91a1dcabb5aabcf968f117c7553c2e3abb",
        "value": "0x0",
        "gas": "0x296e8",
        "gasUsed": "0x341c",
        "input": "0x0adcf464000000000000000000000000f12c10df5c61592dc0f0c65b283552b45d1d9a9e00000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001b00000000000000000000000000000000000000000000000000000000000000016e07c32deaef1abe8ff401aa867859d2fe664e85ec2fc652e300b7e2f4b63bb100000000000000000000000000000000000000000000000000000000000000016804aa44b3cee226f82d682dc4af71531e0d8f30e001dab8521268a945b38581",
        "output": "0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000195369676e6572206d75737420626520746865206f776e65722e00000000000000",
        "error": "execution reverted",
        "calls": [
          {
            "type": "STATICCALL",
            "from": "0xdaee6b91a1dcabb5aabcf968f117c7553c2e3abb",
            "to": "0x0000000000000000000000000000000000000001",
            "gas": "0x27027",
            "gasUsed": "0xbb8",
            "input": "0xf45bdb1560f9bee2a03c35e6c1dd530eb5d7df6e3c4add38314f206c56c92f60000000000000000000000000000000000000000000000000000000000000001b6e07c32deaef1abe8ff401aa867859d2fe664e85ec2fc652e300b7e2f4b63bb16804aa44b3cee226f82d682dc4af71531e0d8f30e001dab8521268a945b38581",
            "output": "0x00000000000000000000000043e89382d30159b38721a24401f9a4fe66d13397"
          }
        ]
      }
    }
  ]
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
