throw new ByteQueueException("Unable to read requested amount of data.");
}
- byte[] result = Elements.GetRange(Index, Count).ToArray();
+ var result = Elements.GetRange(Index, Count).ToArray();
Index += Count;
return result;
throw new ByteQueueException("Unable to read requested amount of data.");
}
- byte[] result = Elements.GetRange(Index, Count).ToArray();
+ var result = Elements.GetRange(Index, Count).ToArray();
return result;
}
// OP_PUSHDATA1 0x00 0x01 [0x5a]
codeBytes.Add((byte)instruction.OP_PUSHDATA2);
- byte[] szBytes = Interop.BEBytes((ushort)nCount);
+ var szBytes = Interop.BEBytes((ushort)nCount);
codeBytes.AddRange(szBytes);
}
else if (nCount < 0xffffffff)
// OP_PUSHDATA1 0x00 0x00 0x00 0x01 [0x5a]
codeBytes.Add((byte)instruction.OP_PUSHDATA4);
- byte[] szBytes = Interop.BEBytes((uint)nCount);
+ var szBytes = Interop.BEBytes((uint)nCount);
codeBytes.AddRange(szBytes);
}
// Immediate operand
if (opcode <= instruction.OP_PUSHDATA4)
{
- byte[] szBytes = new byte[4] { 0, 0, 0, 0 }; // Zero length
+ var szBytes = new byte[4] { 0, 0, 0, 0 }; // Zero length
try
{
return false;
}
- byte[] sigBytes = stacktop(ref stack, -2);
- byte[] pubkeyBytes = stacktop(ref stack, -1);
+ var sigBytes = stacktop(ref stack, -2);
+ var pubkeyBytes = stacktop(ref stack, -1);
// Subset of script starting at the most recent codeseparator
- CScript scriptCode = new CScript(script.Bytes.Skip(nCodeHashBegin));
+ var scriptCode = new CScript(script.Bytes.Skip(nCodeHashBegin));
// There's no way for a signature to sign itself
scriptCode.RemovePattern(sigBytes);
}
// Subset of script starting at the most recent codeseparator
- CScript scriptCode = new CScript(script.Bytes.Skip(nCodeHashBegin));
+ var scriptCode = new CScript(script.Bytes.Skip(nCodeHashBegin));
// There is no way for a signature to sign itself, so we need to drop the signatures
for (int k = 0; k < nSigsCount; k++)