Skip to content

Commit

Permalink
implement missing method
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaidashenko committed Jan 10, 2025
1 parent c981f93 commit a85a581
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/solana/client/multinode_wrapped_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ func (m *MultiNodeWrappedClient) Start(ctx context.Context) error {
return m.multiNode.Start(ctx)
}

func (m *MultiNodeWrappedClient) GetLatestBlockHeight(ctx context.Context) (uint64, error) {
r, err := m.multiNode.SelectRPC()
if err != nil {
return 0, err
}

return r.GetLatestBlockHeight(ctx)
}

func (m *MultiNodeWrappedClient) SendTx(ctx context.Context, tx *solana.Transaction) (solana.Signature, error) {
r, err := m.multiNode.SelectRPC()
if err != nil {
Expand Down

0 comments on commit a85a581

Please sign in to comment.