Skip to content

Commit

Permalink
[Celo] Move to new mining pool api and lower peer connection backoff …
Browse files Browse the repository at this point in the history
…time (ethereum#8)

Currently the two miners continuously drop and reconnect. By decreasing the backoff time we can thus decrease the block time.
  • Loading branch information
marekolszewski authored and asaj committed Jul 23, 2018
1 parent 5449dc5 commit 2555317
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion abe/abe.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func SendVerificationTexts(block *types.Block, coinbase common.Address, accountM

// Send the actual text message using our mining pool.
// TODO: Make mining pool be configurable via command line arguments.
url := "https://mining-pool.celo.org/send-text"
url := "https://mining-pool.celo.org/v0.1/sms"
values := map[string]string{"phoneNumber": phone, "message": secret}
jsonValue, _ := json.Marshal(values)
_, err = http.Post(url, "application/json", bytes.NewBuffer(jsonValue))
Expand Down
2 changes: 1 addition & 1 deletion p2p/dial.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
const (
// This is the amount of time spent waiting in between
// redialing a certain node.
dialHistoryExpiration = 30 * time.Second
dialHistoryExpiration = 7 * time.Second

// Discovery lookups are throttled and can only run
// once every few seconds.
Expand Down

0 comments on commit 2555317

Please sign in to comment.