Skip to content

Commit 6b0e09c

Browse files
authored
Merge pull request #165 from hyperledger/update_deps
Update common and signer for release
2 parents 3cc2356 + b6585dd commit 6b0e09c

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

config.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
|maxConcurrentRequests|Maximum of concurrent requests to be submitted to the blockchain|`int`|`50`
7878
|maxConnsPerHost|The max number of connections, per unique hostname. Zero means no limit|`int`|`0`
7979
|maxIdleConns|The max number of idle connections to hold pooled|`int`|`100`
80+
|maxIdleConnsPerHost|The max number of idle connections, per unique hostname. Zero means net/http uses the default of only 2.|`int`|`100`
8081
|passthroughHeadersEnabled|Enable passing through the set of allowed HTTP request headers|`boolean`|`false`
8182
|requestTimeout|The maximum amount of time that a request is allowed to remain open|[`time.Duration`](https://pkg.go.dev/time#Duration)|`30s`
8283
|tlsHandshakeTimeout|The maximum amount of time to wait for a successful TLS handshake|[`time.Duration`](https://pkg.go.dev/time#Duration)|`10s`
@@ -418,6 +419,7 @@
418419
|idleTimeout|The max duration to hold a HTTP keepalive connection between calls|[`time.Duration`](https://pkg.go.dev/time#Duration)|`475ms`
419420
|maxConnsPerHost|The max number of connections, per unique hostname. Zero means no limit|`int`|`0`
420421
|maxIdleConns|The max number of idle connections to hold pooled|`int`|`100`
422+
|maxIdleConnsPerHost|The max number of idle connections, per unique hostname. Zero means net/http uses the default of only 2.|`int`|`100`
421423
|method|Deprecated: Please use 'transactions.handler.simple.gasOracle.method' instead|`string`|`GET`
422424
|mode|Deprecated: Please use 'transactions.handler.simple.gasOracle.mode' instead|'connector', 'restapi', 'fixed', or 'disabled'|`connector`
423425
|passthroughHeadersEnabled|Enable passing through the set of allowed HTTP request headers|`boolean`|`false`
@@ -519,6 +521,7 @@
519521
|idleTimeout|The max duration to hold a HTTP keepalive connection between calls|[`time.Duration`](https://pkg.go.dev/time#Duration)|`475ms`
520522
|maxConnsPerHost|The max number of connections, per unique hostname. Zero means no limit|`int`|`0`
521523
|maxIdleConns|The max number of idle connections to hold pooled|`int`|`100`
524+
|maxIdleConnsPerHost|The max number of idle connections, per unique hostname. Zero means net/http uses the default of only 2.|`int`|`100`
522525
|method|The HTTP Method to use when invoking the Gas Oracle REST API|`string`|`GET`
523526
|mode|The gas oracle mode|'connector', 'restapi', 'fixed', or 'disabled'|`connector`
524527
|passthroughHeadersEnabled|Enable passing through the set of allowed HTTP request headers|`boolean`|`false`
@@ -592,6 +595,7 @@
592595
|idleTimeout|The max duration to hold a HTTP keepalive connection between calls|[`time.Duration`](https://pkg.go.dev/time#Duration)|`475ms`
593596
|maxConnsPerHost|The max number of connections, per unique hostname. Zero means no limit|`int`|`0`
594597
|maxIdleConns|The max number of idle connections to hold pooled|`int`|`100`
598+
|maxIdleConnsPerHost|The max number of idle connections, per unique hostname. Zero means net/http uses the default of only 2.|`int`|`100`
595599
|passthroughHeadersEnabled|Enable passing through the set of allowed HTTP request headers|`boolean`|`false`
596600
|requestTimeout|The maximum amount of time that a request is allowed to remain open|[`time.Duration`](https://pkg.go.dev/time#Duration)|`30s`
597601
|tlsHandshakeTimeout|The maximum amount of time to wait for a successful TLS handshake|[`time.Duration`](https://pkg.go.dev/time#Duration)|`10s`

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ toolchain go1.22.7
66

77
require (
88
github.com/hashicorp/golang-lru v1.0.2
9-
github.com/hyperledger/firefly-common v1.4.11
10-
github.com/hyperledger/firefly-signer v1.1.17
9+
github.com/hyperledger/firefly-common v1.4.15
10+
github.com/hyperledger/firefly-signer v1.1.20
1111
github.com/hyperledger/firefly-transaction-manager v1.3.19
1212
github.com/sirupsen/logrus v1.9.3
1313
github.com/spf13/cobra v1.8.0

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpO
100100
github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
101101
github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU=
102102
github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
103-
github.com/hyperledger/firefly-common v1.4.11 h1:WKv2hQuNpS7yP51THxzpzrqU3jkln23C9vq5iminzBk=
104-
github.com/hyperledger/firefly-common v1.4.11/go.mod h1:E7w/RxNtVnX52WXLQW9f2xVAgZnW70voZeE9sZrx/q0=
105-
github.com/hyperledger/firefly-signer v1.1.17 h1:JV38nNeCS/K31kPDk5mwnoqw6SoulcYF+12JW8a3/Mw=
106-
github.com/hyperledger/firefly-signer v1.1.17/go.mod h1:HDaDdht94JypRTunRGrcPL5Pvxfh4yigjatTrie5JUI=
103+
github.com/hyperledger/firefly-common v1.4.15 h1:dp4Mo2JQRPMbL7hoMw8T/ktvIUgematOLkXIppQtBp0=
104+
github.com/hyperledger/firefly-common v1.4.15/go.mod h1:bA7tAJxcpfQMrHN3/YycTSpyk4g2WlnDlpHx8WOUtAY=
105+
github.com/hyperledger/firefly-signer v1.1.20 h1:U/oGj+QuHdFp4NVZyYOzt3RW51m9nsdYQAGGeChG7g0=
106+
github.com/hyperledger/firefly-signer v1.1.20/go.mod h1:4S8Ki1f1d8U+Ujojea/a3mkXnJ5Fuz+JBfrf9HBdyO0=
107107
github.com/hyperledger/firefly-transaction-manager v1.3.19 h1:AzRYulDpk+AzeVPFGqw8nLRMPNJcX32FP7VBdsTM+L0=
108108
github.com/hyperledger/firefly-transaction-manager v1.3.19/go.mod h1:qZgj628oCJ+DP3CwS2y9pRN8zwJAJ8/U3ait/+fmQlg=
109109
github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=

internal/ethereum/blocklistener.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ func (bl *blockListener) newHeadsSubListener() {
129129
func (bl *blockListener) establishBlockHeightWithRetry() error {
130130
wsConnected := false
131131
return bl.c.retry.Do(bl.ctx, "get initial block height", func(_ int) (retry bool, err error) {
132-
133132
// If we have a WebSocket backend, then we connect it and switch over to using it
134133
// (we accept an un-locked update here to backend, as the most important routine that's
135134
// querying block state is the one we're called on)
@@ -197,11 +196,11 @@ func (bl *blockListener) listenLoop() {
197196
// Sleep for the polling interval, or until we're shoulder tapped by the newHeads listener
198197
if !firstIteration {
199198
select {
200-
case <-time.After(bl.blockPollingInterval):
201-
case <-bl.newHeadsTap:
202199
case <-bl.ctx.Done():
203200
log.L(bl.ctx).Debugf("Block listener loop stopping")
204201
return
202+
case <-time.After(bl.blockPollingInterval):
203+
case <-bl.newHeadsTap:
205204
}
206205
} else {
207206
firstIteration = false
@@ -296,7 +295,6 @@ func (bl *blockListener) listenLoop() {
296295
// head of the canonical chain we have. If these blocks do not just fit onto the end of the chain, then we
297296
// work backwards building a new view and notify about all blocks that are changed in that process.
298297
func (bl *blockListener) reconcileCanonicalChain(bi *blockInfoJSONRPC) *list.Element {
299-
300298
mbi := &minimalBlockInfo{
301299
number: bi.Number.BigInt().Int64(),
302300
hash: bi.Hash.String(),
@@ -336,7 +334,6 @@ func (bl *blockListener) reconcileCanonicalChain(bi *blockInfoJSONRPC) *list.Ele
336334
// handleNewBlock rebuilds the canonical chain around a new block, checking if we need to rebuild our
337335
// view of the canonical chain behind it, or trimming anything after it that is invalidated by a new fork.
338336
func (bl *blockListener) handleNewBlock(mbi *minimalBlockInfo, addAfter *list.Element) *list.Element {
339-
340337
// If we have an existing canonical chain before this point, then we need to check we've not
341338
// invalidated that with this block. If we have, then we have to re-verify our whole canonical
342339
// chain from the first block. Then notify from the earliest point where it has diverged.
@@ -374,7 +371,6 @@ func (bl *blockListener) handleNewBlock(mbi *minimalBlockInfo, addAfter *list.El
374371
log.L(bl.ctx).Debugf("Added block %d / %s parent=%s to in-memory canonical chain (new length=%d)", mbi.number, mbi.hash, mbi.parentHash, bl.canonicalChain.Len())
375372

376373
return newElem
377-
378374
}
379375

380376
// rebuildCanonicalChain is called (only on non-empty case) when our current chain does not seem to line up with

0 commit comments

Comments
 (0)