<?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: Abdullah Alam</title>
    <description>The latest articles on Developers Forum for XinFin XDC Network by Abdullah Alam (@theabdullahalam).</description>
    <link>https://www.xdc.dev/theabdullahalam</link>
    <image>
      <url>https://www.xdc.dev/images/xn1sffZf54561Qasb1W_AKdgM3TikaAwXQwuQraex9Y/rs:fill:90:90/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL3VzZXIvcHJv/ZmlsZV9pbWFnZS8y/MTQvZDFiZDg2MGQt/NWQyMi00M2I3LTkw/ZmQtN2MxMTYxOTEz/NmVlLmpwZWc</url>
      <title>Developers Forum for XinFin XDC Network: Abdullah Alam</title>
      <link>https://www.xdc.dev/theabdullahalam</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.xdc.dev/feed/theabdullahalam"/>
    <language>en</language>
    <item>
      <title>[Closed]What do the parameters in XDC Validator Contract withdraw function refer to?</title>
      <dc:creator>Abdullah Alam</dc:creator>
      <pubDate>Wed, 09 Nov 2022 08:57:47 +0000</pubDate>
      <link>https://www.xdc.dev/theabdullahalam/what-do-the-parameters-in-xdc-validator-contract-withdraw-function-refer-to-3gco</link>
      <guid>https://www.xdc.dev/theabdullahalam/what-do-the-parameters-in-xdc-validator-contract-withdraw-function-refer-to-3gco</guid>
      <description>&lt;p&gt;We are working on a contract that will interface with the XDC Validator contract at &lt;code&gt;xdc0000000000000000000000000000000000000088&lt;/code&gt;. So far we have been able to programmatically call every function of the staking lifecycle except &lt;code&gt;withdraw()&lt;/code&gt;. This is what the function definition in the Validator contract at the aforementioned address looks like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight solidity"&gt;&lt;code&gt;&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;withdraw&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;uint256&lt;/span&gt; &lt;span class="n"&gt;_blockNumber&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;uint&lt;/span&gt; &lt;span class="n"&gt;_index&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="n"&gt;onlyValidWithdraw&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_blockNumber&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_index&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="p"&gt;...&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What do &lt;code&gt;uint256 _blockNumber&lt;/code&gt; and &lt;code&gt;uint _index&lt;/code&gt; refer to in the context of withdrawing funds from the Validator contract?&lt;/p&gt;

</description>
      <category>staking</category>
      <category>xdpos</category>
      <category>xdc</category>
    </item>
    <item>
      <title>Private Xinfin Node Not Starting Up</title>
      <dc:creator>Abdullah Alam</dc:creator>
      <pubDate>Tue, 30 Aug 2022 11:22:58 +0000</pubDate>
      <link>https://www.xdc.dev/theabdullahalam/private-xinfin-node-not-starting-up-1472</link>
      <guid>https://www.xdc.dev/theabdullahalam/private-xinfin-node-not-starting-up-1472</guid>
      <description>&lt;p&gt;I am trying to get a private XinFin node up and running, by following &lt;a href="https://medium.com/xinfin/how-to-set-up-a-private-blockchain-network-with-xdc-network-codebase-b2ee82368e83"&gt;this guide.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Steps to reproduce:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Follow the guide in the link, using &lt;code&gt;puppeth&lt;/code&gt; from the &lt;a href="https://github.com/XinFinOrg/XDPoSChain"&gt;XDPoS Chain repo&lt;/a&gt; to generate &lt;code&gt;bootnode.key&lt;/code&gt; and &lt;code&gt;genesis.json&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;As per the aforementioned guide, clone the &lt;a href="https://github.com/XinFinOrg/Local_DPoS_Setup"&gt;Local_DPoS_Setup&lt;/a&gt; repo and replace &lt;code&gt;genesis.json&lt;/code&gt; and &lt;code&gt;bootnode.key&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Update &lt;code&gt;.env&lt;/code&gt; to include your private keys.&lt;/li&gt;
&lt;li&gt;Edit &lt;code&gt;run.sh&lt;/code&gt; to change the project directory and the enode urls generated from the first step.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;However, I am getting the following error at the very last step, after setting everything up and executing &lt;code&gt;run.sh&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.xdc.dev/images/qP99G_WsslMLdVBxBAKwj62lNahm2MlJl6th2qfbe44/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/L3R2NXlwdjM0aDN0/cXRqY2praGp5LnBu/Zw" class="article-body-image-wrapper"&gt;&lt;img src="https://www.xdc.dev/images/qP99G_WsslMLdVBxBAKwj62lNahm2MlJl6th2qfbe44/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/L3R2NXlwdjM0aDN0/cXRqY2praGp5LnBu/Zw" alt="Error Message" width="880" height="466"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Error Message:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Fatal: Error starting protocol stack: bad bootstrap/fallback node &lt;span class="s2"&gt;"enode://b68a56b438e08a1a4f6c4f88aa54b34e88a902433f8027aa2ceadd772dd637c37496fc9a7a5e9220b4a7e492b60bd52b1d2827b7eea0e3089e56c79d9f93045c@[::]:30301"&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;invalid IP &lt;span class="o"&gt;(&lt;/span&gt;multicast/unspecified&lt;span class="o"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here's my &lt;code&gt;run.sh&lt;/code&gt; file:&lt;br&gt;
&lt;a href="https://www.xdc.dev/images/IpnadTuFSZev9twHV9AbJ12dYBAvHZ003PkUvenfxwE/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/L3dyaG4wd3ZoZDl3/dzVhNzZmN3NsLnBu/Zw" class="article-body-image-wrapper"&gt;&lt;img src="https://www.xdc.dev/images/IpnadTuFSZev9twHV9AbJ12dYBAvHZ003PkUvenfxwE/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/L3dyaG4wd3ZoZDl3/dzVhNzZmN3NsLnBu/Zw" alt="run.sh" width="880" height="398"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Any help/advice debugging this would be much appreciated!&lt;/p&gt;

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