ToInt64 -> ToUInt64
authorCryptoManiac <CryptoManiac@users.noreply.github.com>
Sun, 30 Aug 2015 05:29:16 +0000 (08:29 +0300)
committerCryptoManiac <CryptoManiac@users.noreply.github.com>
Sun, 30 Aug 2015 05:29:16 +0000 (08:29 +0300)
Novacoin/CTransaction.cs

index fd8c28f..343968a 100644 (file)
@@ -128,7 +128,7 @@ namespace Novacoin
             {
                 // Fill outputs array
                 vout[nCurrentOutput] = new CTxOut();
-                vout[nCurrentOutput].nValue = BitConverter.ToInt64(wBytes.Get(8), 0);
+                vout[nCurrentOutput].nValue = BitConverter.ToUInt64(wBytes.Get(8), 0);
 
                 int nScriptPKLen = (int)wBytes.GetVarInt();
                 vout[nCurrentOutput].scriptPubKey = new CScript(wBytes.Get(nScriptPKLen));