Let's assume I create and send a series of txs:
|------block A--------|------block B----------|----block C-----|----block D-----|
|Tx1......Tx2.........|...Tx3.................|................|......Tx4.......|
but then a fork happens and a block reorganization takes place:
|------block A--------|------block B----------|----block E-----|----block F-----|--block G--|
|Tx1......Tx2.........|...Tx3.................|......???.......|......???.......|.....???...|
Whatever happens to Tx4? Will it be included in one of blocks E, F, G or another block? Is it gone? Conflicted/invalidated? Do I need to resend it? If yes, can I spend the same inputs I did when creating Tx4?
How is it determined which block (E/F/G/other) Tx4 is likely to be included into?
It's decided by the miner before they mine those blocks. Miners will include most transactions, provided that they are legal, pay fees, and the miner knows about them. – Nick ODell Jan 08 '15 at 17:21what is the number of blocks after that point at which we can safely assume that Tx4 will not be included
Never. You could wait 10 years, put Tx4 into a block, and it would still be legal. However, if it's been 4 days, the transaction has probably been forgotten. – Nick ODell Jan 08 '15 at 17:22