Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

follower: update follower node error messages. #5797

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions node/follower_node.go
Expand Up @@ -226,17 +226,17 @@

// BroadcastSignedTxGroup errors in follower mode
func (node *AlgorandFollowerNode) BroadcastSignedTxGroup(_ []transactions.SignedTxn) (err error) {
return fmt.Errorf("cannot broadcast txns in sync mode")
return fmt.Errorf("cannot broadcast txns in follower mode")
}

// AsyncBroadcastSignedTxGroup errors in follower mode
func (node *AlgorandFollowerNode) AsyncBroadcastSignedTxGroup(_ []transactions.SignedTxn) (err error) {
return fmt.Errorf("cannot broadcast txns in sync mode")
return fmt.Errorf("cannot broadcast txns in follower mode")

Check warning on line 234 in node/follower_node.go

View check run for this annotation

Codecov / codecov/patch

node/follower_node.go#L234

Added line #L234 was not covered by tests
}

// BroadcastInternalSignedTxGroup errors in follower mode
func (node *AlgorandFollowerNode) BroadcastInternalSignedTxGroup(_ []transactions.SignedTxn) (err error) {
return fmt.Errorf("cannot broadcast internal signed txn group in sync mode")
return fmt.Errorf("cannot broadcast internal signed txn group in follower mode")
}

// Simulate speculatively runs a transaction group against the current
Expand Down