Example #1
0
		/**
		 * Creates a transaction by reading payload starting from offset bytes in. Length of a transaction is fixed.
		 * @param params NetworkParameters object.
		 * @param msg Bitcoin protocol formatted byte array containing message content.
		 * @param offset The location of the first msg byte within the array.
		 * @param parseLazy Whether to perform a full parse immediately or delay until a read is requested.
		 * @param parseRetain Whether to retain the backing byte array for quick reserialization.  
		 * If true and the backing byte array is invalidated due to modification of a field then 
		 * the cached bytes may be repopulated and retained if the message is serialized again in the future.
		 * @param length The length of message if known.  Usually this is provided when deserializing of the wire
		 * as the length will be provided as part of the header.  If unknown then set to Message.UNKNOWN_LENGTH
		 * @throws ProtocolException
		 * 
		 * throws ProtocolException
		 */
		public Transaction(NetworkParameters parameters,byte[] msg,int offset,AMessage parent,bool parseLazy,bool parseRetain,int length):base(parameters,msg,offset,parent,parseLazy,parseRetain,length)
		{ }
Example #2
0
		/**
		 * Creates a transaction by reading payload starting from offset bytes in. Length of a transaction is fixed.
		 * throws ProtocolException
		 */
		public Transaction(NetworkParameters parameters,byte[] msg,AMessage parent,bool parseLazy,bool parseRetain,int length):this(parameters,msg,0,parent,parseLazy,parseRetain,length)
		{ }