A useful flow chart of how a Bitcoin transaction completes.