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