git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
30884be
)
Remove asserts
author
alex
<alex@alex-VirtualBox.(none)>
Sun, 18 Aug 2013 14:12:33 +0000 (18:12 +0400)
committer
alex
<alex@alex-VirtualBox.(none)>
Sun, 18 Aug 2013 14:12:33 +0000 (18:12 +0400)
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index
18c0b17
..
26e89f0
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-2147,8
+2147,6
@@
bool CBlock::CheckBlock(bool fCheckPOW, bool fCheckMerkleRoot, bool fCheckSig) c
if (IsProofOfStake())
{
- assert(nNonce == 0);
-
// Coinbase output should be empty if proof-of-stake block
if (vtx[0].vout.size() != 1 || !vtx[0].vout[0].IsEmpty())
return DoS(100, error("CheckBlock() : coinbase output not empty for proof-of-stake block"));
@@
-2170,8
+2168,6
@@
bool CBlock::CheckBlock(bool fCheckPOW, bool fCheckMerkleRoot, bool fCheckSig) c
}
else
{
- assert(nNonce != 0);
-
// Coinbase fee paid until 20 Sep 2013
int64 nFee = GetBlockTime() < CHAINCHECKS_SWITCH_TIME ? vtx[0].GetMinFee() - MIN_TX_FEE : 0;