<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>MultiChain Developer Q&amp;A - Recent questions tagged creating-blocks</title>
<link>https://www.multichain.com/qa/tag/creating-blocks</link>
<description>Powered by Question2Answer</description>
<item>
<title>How do I revoke a transaction.</title>
<link>https://www.multichain.com/qa/2311/how-do-i-revoke-a-transaction</link>
<description>I understand that blocks in a blockchain if there has been confirmations or if more number of blocks are added after it cannot be modified.&lt;br /&gt;
If I am the admin, will I be able to stop the nodes being added temporarily and probably delete an erronoes transaction in a node or maybe isolate the whole block and ask the sender to re-do the transaction?&lt;br /&gt;
how do i even modify a newly created block evenif there are no blocks added to it?&lt;br /&gt;
who has the control? or is it not controllable by anyone?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/2311/how-do-i-revoke-a-transaction</guid>
<pubDate>Wed, 27 Jul 2016 09:46:26 +0000</pubDate>
</item>
<item>
<title>Corrupted block database detected.</title>
<link>https://www.multichain.com/qa/1299/corrupted-block-database-detected</link>
<description>In the scenario where we have 3 nodes, lets say we made node 1 first then node 2 then 3. Nodes 2 and 3 are replicas of 1. If we insert assets from node 2 into the wallet of node 1 the assets are generated at a&lt;br /&gt;
high rate. At one point during &amp;quot;insert from 2 to 1&amp;quot; speed at which assets were being inserted dropped significantly (it seems that node 1 was choking) then node 1 crashed and speed of inserting got back to high.&lt;br /&gt;
&lt;br /&gt;
when i tried to restart node 1 i got an error saying :&lt;br /&gt;
&lt;br /&gt;
: Corrupted block database detected.&lt;br /&gt;
&lt;br /&gt;
Please restart multichaind with reindex=1.&lt;br /&gt;
&lt;br /&gt;
i assume this was probably a hardware glitch or something but i wanted to ask you what can cause this error and also what causes the &amp;quot;choke&amp;quot; that caused node 1 to crash in the first place? Should we add a small sleeep(5s) every 100 sec or so to avoid this or something?&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
debug log:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
2016-03-22 08:55:48 MultiChain version build 1.0 alpha 18 protocol 10005 (2016-03-13 08:58:54 +0200)&lt;br /&gt;
2016-03-22 08:55:48 Using OpenSSL version OpenSSL 1.0.1h 5 Jun 2014&lt;br /&gt;
2016-03-22 08:55:48 Using BerkeleyDB version Berkeley DB 4.8.30: (April &amp;nbsp;9, 2010)&lt;br /&gt;
2016-03-22 08:55:48 Default data directory /home/sloba/.multichain/theone&lt;br /&gt;
2016-03-22 08:55:48 Using data directory /home/sloba/.multichain/theone&lt;br /&gt;
2016-03-22 08:55:48 Using config file /home/sloba/.multichain/theone/theone.conf&lt;br /&gt;
2016-03-22 08:55:48 Using at most 125 connections (1024 file descriptors available)&lt;br /&gt;
2016-03-22 08:55:48 Using 4 threads for script verification&lt;br /&gt;
2016-03-22 08:55:48 Using wallet wallet.dat&lt;br /&gt;
2016-03-22 08:55:48 init message: Verifying wallet...&lt;br /&gt;
2016-03-22 08:55:48 CDBEnv::Open : LogDir=/home/sloba/.multichain/theone/database ErrorFile=/home/sloba/.multichain/theone/db.log&lt;br /&gt;
2016-03-22 08:55:49 init message: Initializing multichain...&lt;br /&gt;
2016-03-22 08:55:50 nFileVersion = 100000&lt;br /&gt;
2016-03-22 08:55:50 Keys: 3 plaintext, 0 encrypted, 3 w/ metadata, 3 total&lt;br /&gt;
2016-03-22 08:55:50 mchn: Parameter set is valid - initializing blockchain parameters...&lt;br /&gt;
2016-03-22 08:55:50 Binding RPC on address ::1 port 7724 (IPv4+IPv6 bind any: 0)&lt;br /&gt;
2016-03-22 08:55:50 Binding RPC on address 127.0.0.1 port 7724 (IPv4+IPv6 bind any: 0)&lt;br /&gt;
2016-03-22 08:55:50 Bound to [::]:7725&lt;br /&gt;
2016-03-22 08:55:50 Bound to 0.0.0.0:7725&lt;br /&gt;
2016-03-22 08:55:50 init message: Loading block index...&lt;br /&gt;
2016-03-22 08:55:50 Opening LevelDB in /home/sloba/.multichain/theone/blocks/index&lt;br /&gt;
2016-03-22 08:55:50 Opened LevelDB successfully&lt;br /&gt;
2016-03-22 08:55:50 Opening LevelDB in /home/sloba/.multichain/theone/chainstate&lt;br /&gt;
2016-03-22 08:55:50 Opened LevelDB successfully&lt;br /&gt;
2016-03-22 08:55:50 LoadBlockIndexDB: last block file = 0&lt;br /&gt;
2016-03-22 08:55:50 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=1404, size=16787062, heights=0...1396, time=2016-03-21...2016-03-22)&lt;br /&gt;
2016-03-22 08:55:50 Checking all blk files are present...&lt;br /&gt;
2016-03-22 08:55:50 LoadBlockIndexDB(): transaction index enabled&lt;br /&gt;
2016-03-22 08:55:51 LoadBlockIndexDB(): hashBestChain=00004bfc0db5821879c2b167ba2c6cefe8c18320b5eabb9043d2032dcf178dcb height=1396 date=2016-03-22 08:20:46 progress=1.000000&lt;br /&gt;
2016-03-22 08:55:51 init message: Verifying blocks...&lt;br /&gt;
2016-03-22 08:55:51 Verifying last 288 blocks at level 3&lt;br /&gt;
2016-03-22 08:55:51 ERROR: VerifyDB() : *** found bad permission data at 1396, hash=00004bfc0db5821879c2b167ba2c6cefe8c18320b5eabb9043d2032dcf178dcb&lt;br /&gt;
&lt;br /&gt;
2016-03-22 08:55:51 : Corrupted block database detected.&lt;br /&gt;
&lt;br /&gt;
Please restart multichaind with reindex=1.&lt;br /&gt;
2016-03-22 08:55:51 Aborted block database rebuild. Exiting.&lt;br /&gt;
2016-03-22 08:55:51 Shutdown: In progress...&lt;br /&gt;
2016-03-22 08:55:51 StopNode()&lt;br /&gt;
2016-03-22 08:55:51 Node stopped&lt;br /&gt;
2016-03-22 08:55:51 Shutdown: done&lt;br /&gt;
2016-03-22 08:55:51 CDBEnv::EnvShutdown : Error 22 shutting down database environment: Invalid argument</description>
<guid isPermaLink="true">https://www.multichain.com/qa/1299/corrupted-block-database-detected</guid>
<pubDate>Tue, 22 Mar 2016 09:20:40 +0000</pubDate>
</item>
<item>
<title>No new blocks, broken wallet</title>
<link>https://www.multichain.com/qa/1289/no-new-blocks-broken-wallet</link>
<description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;We have a &quot;single node&quot; Multichain running, but after a reboot we had to run the daemon with &quot;-salvagewallet&quot; because it say it has a broken wallet.&lt;/p&gt;&lt;p&gt;The main issue right now it that the networks is not creating new blocks, so new transactions get stuck on mempool&lt;/p&gt;&lt;p&gt;debug.log says something about mining, but we dont have mining at all, all the funds where send to an address on first block&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;2016-03-21 15:59:54 mapAddressBook.size() = 1&lt;br&gt;2016-03-21 15:59:54 init message: Loading addresses...&lt;br&gt;2016-03-21 15:59:54 Loaded 0 addresses from peers.dat&amp;nbsp; 0ms&lt;br&gt;2016-03-21 15:59:54 init message: Done loading&lt;br&gt;2016-03-21 15:59:54 Node started&lt;br&gt;2016-03-21 15:59:54 dumpaddr thread start&lt;br&gt;&lt;strong&gt;2016-03-21 15:59:54 BitcoinMiner started&lt;br&gt;2016-03-21 15:59:54 mchn: Cannot find address having mining permission&lt;/strong&gt;&lt;br&gt;2016-03-21 15:59:54 msghand thread start&lt;/p&gt;&lt;p&gt;How can we fix this?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/1289/no-new-blocks-broken-wallet</guid>
<pubDate>Mon, 21 Mar 2016 19:08:53 +0000</pubDate>
</item>
<item>
<title>Which impact creating block mid-insert has on insertion?</title>
<link>https://www.multichain.com/qa/1119/which-impact-creating-block-mid-insert-has-on-insertion</link>
<description></description>
<guid isPermaLink="true">https://www.multichain.com/qa/1119/which-impact-creating-block-mid-insert-has-on-insertion</guid>
<pubDate>Thu, 10 Mar 2016 14:19:40 +0000</pubDate>
</item>
</channel>
</rss>