Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanTinianov committed Jul 4, 2024
1 parent 6a6c5d1 commit 21c1c64
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
8 changes: 0 additions & 8 deletions common/client/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ const (
sendTxReturnCodeLen // tracks the number of errors. Must always be last
)

// sendTxSevereErrors - error codes which signal that transaction would never be accepted in its current form by the node
// TODO: Implement Transaction Sending
//var sendTxSevereErrors = []SendTxReturnCode{Fatal, Underpriced, Unsupported, ExceedsMaxFee, FeeOutOfValidRange, Unknown}

// sendTxSuccessfulCodes - error codes which signal that transaction was accepted by the node
// TODO: Implement Transaction Sending
//var sendTxSuccessfulCodes = []SendTxReturnCode{Successful, TransactionAlreadyKnown}

func (c SendTxReturnCode) String() string {
switch c {
case Successful:
Expand Down
2 changes: 0 additions & 2 deletions common/client/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ func (n *node[CHAIN_ID, HEAD, RPC]) ConfiguredChainID() (chainID CHAIN_ID) {
}

func (n *node[CHAIN_ID, HEAD, RPC]) Name() string {
n.stateMu.RLock()
defer n.stateMu.RUnlock()
return n.name
}

Expand Down
2 changes: 0 additions & 2 deletions common/client/node_lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,6 @@ func (n *node[CHAIN_ID, HEAD, RPC]) invalidChainIDLoop() {
}
}

fmt.Println("invalidChainIDLoop")

invalidAt := time.Now()

lggr := logger.Named(n.lfcLog, "InvalidChainID")
Expand Down

0 comments on commit 21c1c64

Please sign in to comment.