Interface Filter.FilterInterface

  • Enclosing class:
    Filter

    public static interface Filter.FilterInterface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void register_output​(WatchedOutput output)
      Registers interest in spends of a transaction output.
      void register_tx​(byte[] txid, byte[] script_pubkey)
      Registers interest in a transaction with `txid` and having an output with `script_pubkey` as a spending condition.
    • Method Detail

      • register_tx

        void register_tx​(byte[] txid,
                         byte[] script_pubkey)
        Registers interest in a transaction with `txid` and having an output with `script_pubkey` as a spending condition.
      • register_output

        void register_output​(WatchedOutput output)
        Registers interest in spends of a transaction output. Note that this method might be called during processing of a new block. You therefore need to ensure that also dependent output spents within an already connected block are correctly handled, e.g., by re-scanning the block in question whenever new outputs have been registered mid-processing.