/// Return a new instance of ByteQueue object for current code bytes
/// </summary>
/// <returns></returns>
- public ByteQueue GetByteQUeue()
+ public ByteQueue GetByteQueue()
{
return new ByteQueue(codeBytes);
}
// This is a pay-to-script-hash scriptPubKey;
// get the last item that the scriptSig
// pushes onto the stack:
- ByteQueue wScriptSig = scriptSig.GetByteQUeue();
+ ByteQueue wScriptSig = scriptSig.GetByteQueue();
instruction opcode; // Current instruction
byte[] pushArgs; // OP_PUSHDATAn argument
return script.codeBytes.ToArray();
}
+ /// <summary>
+ /// Script size
+ /// </summary>
+ public int Size
+ {
+ get { return codeBytes.Count; }
+ }
+
public CScriptID ScriptID
{
get { return new CScriptID(Hash160.Compute160(codeBytes.ToArray())); }