Skip to content

Commit

Permalink
Add Name methods
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanTinianov committed Jan 21, 2025
1 parent 0acb142 commit dc678c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions multinode/multi_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ func NewMultiNode[
return c
}

func (c *MultiNode[CHAIN_ID, RPC]) Name() string {
return c.lggr.Name()
}

func (c *MultiNode[CHAIN_ID, RPC]) ChainID() CHAIN_ID {
return c.chainID
}
Expand Down
4 changes: 4 additions & 0 deletions multinode/transaction_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ type TransactionSender[TX any, RESULT SendTxResult, CHAIN_ID ID, RPC SendTxRPCCl
chStop services.StopChan
}

func (txSender *TransactionSender[TX, RESULT, CHAIN_ID, RPC]) Name() string {
return txSender.lggr.Name()
}

// SendTransaction - broadcasts transaction to all the send-only and primary nodes in MultiNode.
// A returned nil or error does not guarantee that the transaction will or won't be included. Additional checks must be
// performed to determine the final state.
Expand Down

0 comments on commit dc678c0

Please sign in to comment.