Uses of Class
io.mokamint.application.api.ClosedApplicationException

  • Uses of ClosedApplicationException in io.mokamint.application.api

    Modifier and Type
    Method
    Description
    void
    Application.abortBlock(int groupId)
    The node calls this method to abort the execution of the group of transactions identified by id.
    int
    Application.beginBlock(long height, LocalDateTime when, byte[] stateId)
    The node calls this method at the start of the execution of the transactions inside a block.
    boolean
    Application.checkPrologExtra(byte[] extra)
    Checks if the given extra data from the prolog of a deadline is considered valid by this application.
    void
    Application.checkTransaction(Transaction transaction)
    Checks if the given transaction is valid according to this application.
    void
    Application.commitBlock(int groupId)
    The node calls this method to commit the state resulting at the end of the execution of the group of transactions identified by id.
    void
    Application.deliverTransaction(int groupId, Transaction transaction)
    Delivers another transaction inside the group execution identified by id.
    byte[]
    Application.endBlock(int groupId, Deadline deadline)
    The node calls this method when a group execution of transactions ends.
    byte[]
    Application.getInitialStateId()
    Yields the identifier of the state of this application when it starts, before any transaction has been executed.
    long
    Application.getPriority(Transaction transaction)
    Computes the priority of the given transaction.
    Application.getRepresentation(Transaction transaction)
    Yields a string representation of the transaction, that can be used to print or process its structure.
    void
    Application.keepFrom(LocalDateTime start)
    Informs the application that states of blocks created with a Application.beginBlock(long, LocalDateTime, byte[]) whose when parameter is before start are allowed to be garbage-collected, if the application has some notion of garbage-collection.
    void
    Application.publish(Block block)
    Publishes the given block, that has just been added to the blockchain.