mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
blocks-1,
verify block chain on load, so wouldn't have needed to delete blk*.dat, it would have done a reorg automatically
This commit is contained in:
parent
c923cdbd5b
commit
bb3fd02930
6 changed files with 91 additions and 49 deletions
4
rpc.cpp
4
rpc.cpp
|
|
@ -120,7 +120,7 @@ Value getblockcount(const Array& params, bool fHelp)
|
|||
"getblockcount\n"
|
||||
"Returns the number of blocks in the longest block chain.");
|
||||
|
||||
return nBestHeight + 1;
|
||||
return nBestHeight;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -240,7 +240,7 @@ Value getinfo(const Array& params, bool fHelp)
|
|||
Object obj;
|
||||
obj.push_back(Pair("version", (int)VERSION));
|
||||
obj.push_back(Pair("balance", (double)GetBalance() / (double)COIN));
|
||||
obj.push_back(Pair("blocks", (int)nBestHeight + 1));
|
||||
obj.push_back(Pair("blocks", (int)nBestHeight));
|
||||
obj.push_back(Pair("connections", (int)vNodes.size()));
|
||||
obj.push_back(Pair("proxy", (fUseProxy ? addrProxy.ToStringIPPort() : string())));
|
||||
obj.push_back(Pair("generate", (bool)fGenerateBitcoins));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue