}
/// <summary>
- /// Stake modifier checksum.
+ /// Stake modifier checksum
/// </summary>
public uint nStakeModifierChecksum;
public class TxOutItem
{
/// <summary>
+ /// Outpoint identifier.
+ /// </summary>
+ [PrimaryKey, AutoIncrement]
+ public long nOutpointID { get; set; }
+
+ /// <summary>
/// Reference to transaction item.
/// </summary>
[ForeignKey(typeof(CMerkleNode), Name = "nMerkleNodeID")]
/// Getter for output value.
/// </summary>
[Ignore]
- public ulong nValue
+ public long nValue
{
get { return VarInt.DecodeVarInt(OutputValue); }
set { OutputValue = VarInt.EncodeVarInt(value); }
public class InputsJoin : TxOutItem
{
public byte[] TransactionHash { get; set; }
+
+ /// <summary>
+ /// To avoid awkwardness of sqlite wrapper.
+ /// </summary>
+ /// <returns></returns>
+ public TxOutItem getTxOutItem()
+ {
+ return new TxOutItem()
+ {
+ nOutpointID = nOutpointID,
+ nMerkleNodeID = nMerkleNodeID,
+ outputFlags = outputFlags,
+ OutputNumber = OutputNumber,
+ OutputValue = OutputValue,
+ scriptPubKey = scriptPubKey
+ };
+ }
}