Chain TX : "Source already consumed"
I try to implement TX chaining.
I have a source, consumed by a pending TX.
/tx/sources/G2CBgZBPLe6FSFUgpx2Jf1Aqsgta6iib3vmDRA1yLiqU
:
pubkey: "G2CBgZBPLe6FSFUgpx2Jf1Aqsgta6iib3vmDRA1yLiqU",
sources: [
{
type: "T",
noffset: 1,
identifier: "FD69BAD6D136E0E30E53DC4C8634958472B689DBBB99F700F0CFD2A8A10927A3",
amount: 190544,
base: 0
}
]
}
/tx/history/G2CBgZBPLe6FSFUgpx2Jf1Aqsgta6iib3vmDRA1yLiqU
:
{
pubkey: "G2CBgZBPLe6FSFUgpx2Jf1Aqsgta6iib3vmDRA1yLiqU",
history: {
sent: [],
received: [],
sending: [],
receiving: [ ],
pending: [
{
version: 3,
issuers: [
"G2CBgZBPLe6FSFUgpx2Jf1Aqsgta6iib3vmDRA1yLiqU"
],
inputs: [
"190544:0:T:FD69BAD6D136E0E30E53DC4C8634958472B689DBBB99F700F0CFD2A8A10927A3:1"
],
outputs: [
"10028:0:SIG(BiryrzFDwVTTMGL94P27tuw8xUb6iFAzr3QDK4gvy4mg)",
"180516:0:SIG(G2CBgZBPLe6FSFUgpx2Jf1Aqsgta6iib3vmDRA1yLiqU)"
],
comment: "",
locktime: "0",
blockstamp: "3801-0000078D86706661CE72CEE4FB1C5D6FC4C114E2D8321F2EE3A7CA7B0D6ECD2C",
blockstampTime: 1476119009,
signatures: [
"hJSP6DmUk2g+Lo1wpZ45dW3S0OgK2lhz8uQgOmeuI4QhoZK1sxoAdNwHkqSSARFhgORVf4iFE2YYNsUagPTJBw=="
],
hash: "D291410DCCEBDEEEDE9E50DE8431E62126805900185B565548E290FDC091B2C0",
block_number: null,
time: null,
received: 0
}
]
}
}
If i use the pending TX output, as a new TX input, the new TX is rejected with error : Source already consumed
The TX document:
Version: 3
Type: Transaction
Currency: sou
Blockstamp: 3801-0000078D86706661CE72CEE4FB1C5D6FC4C114E2D8321F2EE3A7CA7B0D6ECD2C
Locktime: 0
Issuers:
G2CBgZBPLe6FSFUgpx2Jf1Aqsgta6iib3vmDRA1yLiqU
Inputs:
180516:0:T:D291410DCCEBDEEEDE9E50DE8431E62126805900185B565548E290FDC091B2C0:1
Unlocks:
0:SIG(0)
Outputs:
15042:0:SIG(BiryrzFDwVTTMGL94P27tuw8xUb6iFAzr3QDK4gvy4mg)
165474:0:SIG(G2CBgZBPLe6FSFUgpx2Jf1Aqsgta6iib3vmDRA1yLiqU)
Comment:
a614gPV+7AXf5lJIZiBpxN16kCe0HZbr5/hjbg6kif455gLBAjUh20yjolUiIxSP4KVQ6BJRO7v4j3frTN2iCg==