git://git.novaco.in
/
NovacoinLibrary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4fa8ff7
)
SetEmpty on construct
author
CryptoManiac
<balthazar.ad@gmail.com>
Fri, 21 Aug 2015 14:14:53 +0000 (17:14 +0300)
committer
CryptoManiac
<balthazar.ad@gmail.com>
Fri, 21 Aug 2015 14:14:53 +0000 (17:14 +0300)
Novacoin/CTxOut.cs
patch
|
blob
|
history
diff --git
a/Novacoin/CTxOut.cs
b/Novacoin/CTxOut.cs
index
3e3d4c1
..
4ce6c0d
100644
(file)
--- a/
Novacoin/CTxOut.cs
+++ b/
Novacoin/CTxOut.cs
@@
-34,7
+34,7
@@
namespace Novacoin
/// </summary>
public CTxOut()
{
- scriptPubKey = new CScript();
+ SetEmpty();
}
/// <summary>
@@
-81,12
+81,17
@@
namespace Novacoin
}
}
+ /// <summary>
+ /// Null prevouts have -1 value
+ /// </summary>
public void SetNull()
{
nValue = -1;
- scriptPubKey.SetNullDestination();
}
+ /// <summary>
+ /// Empty outputs have zero value and empty scriptPubKey
+ /// </summary>
public void SetEmpty()
{
nValue = 0;