git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e139f82
)
Remove PoW block signature from RPC also
author
alex
<alex@alex-VirtualBox.(none)>
Sat, 15 Jun 2013 13:34:23 +0000 (17:34 +0400)
committer
alex
<alex@alex-VirtualBox.(none)>
Sat, 15 Jun 2013 13:34:23 +0000 (17:34 +0400)
src/rpcblockchain.cpp
patch
|
blob
|
history
diff --git
a/src/rpcblockchain.cpp
b/src/rpcblockchain.cpp
index
09e81b0
..
168d234
100644
(file)
--- a/
src/rpcblockchain.cpp
+++ b/
src/rpcblockchain.cpp
@@
-87,7
+87,9
@@
Object blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool fPri
}
result.push_back(Pair("tx", txinfo));
- result.push_back(Pair("signature", HexStr(block.vchBlockSig.begin(), block.vchBlockSig.end())));
+
+ if (!fTestNet && block.GetBlockTime() < CHAINCHECKS_SWITCH_TIME)
+ result.push_back(Pair("signature", HexStr(block.vchBlockSig.begin(), block.vchBlockSig.end())));
return result;
}