PrevUpHomeNext

DisputedTx

A transaction discovered to be in dispute during conensus.

Synopsis
template<
    class Tx_t,
    class NodeID_t>
class DisputedTx
Member Functions

Name

Description

DisputedTx

Constructor.

ID

The unique id/hash of the disputed transaction.

getJson

JSON representation of dispute, used for debugging.

getOurVote

Our vote on whether the transaction should be included.

setOurVote

Change our vote.

setVote

Change a peer's vote.

tx

The disputed transaction.

unVote

Remove a peer's vote.

updateVote

Update our vote given progression of consensus.

Description

During consensus, a DisputedTx is created when a transaction is discovered to be disputed. The object persists only as long as the dispute.

Undisputed transactions have no corresponding DisputedTx object.

Refer to Consensus for details on the template type requirements.

Template Parameters

Type

Description

Tx_t

The type for a transaction

NodeID_t

The type for a node identifier

Header

#include <ripple/consensus/DisputedTx.h>


PrevUpHomeNext