public ConnectionResult connect ( Map < Sha256Hash , Transaction > transactions , ConnectMode mode ) { Transaction tx = transactions . get ( outpoint . getHash ( ) ) ; if ( tx == null ) { return TransactionInput . ConnectionResult . NO_SUCH_TX ; } return connect ( tx , mode ) ; }
Connects this input to the relevant output of the referenced transaction if it s in the given map . Connecting means updating the internal pointers and spent flags . If the mode is to ABORT_ON_CONFLICT then the spent output won t be changed but the outpoint . fromTx pointer will still be updated .