Skip to content

Commit 6dbc0fa

Browse files
authored
multinode: rm cometbft (#31)
1 parent afa0f9b commit 6dbc0fa

3 files changed

Lines changed: 4 additions & 12 deletions

File tree

multinode/go.mod

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module github.com/smartcontractkit/chainlink-framework/multinode
33
go 1.23.3
44

55
require (
6-
github.com/cometbft/cometbft v0.37.5
76
github.com/jpillora/backoff v1.0.0
87
github.com/pkg/errors v0.9.1
98
github.com/prometheus/client_golang v1.20.5
@@ -24,11 +23,9 @@ require (
2423
github.com/mr-tron/base58 v1.2.0 // indirect
2524
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
2625
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
27-
github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 // indirect
2826
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
2927
github.com/prometheus/common v0.60.1 // indirect
3028
github.com/prometheus/procfs v0.15.1 // indirect
31-
github.com/sasha-s/go-deadlock v0.3.5 // indirect
3229
github.com/smartcontractkit/libocr v0.0.0-20241007185508-adbe57025f12 // indirect
3330
github.com/stretchr/objx v0.5.2 // indirect
3431
go.opentelemetry.io/otel v1.30.0 // indirect

multinode/go.sum

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
22
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
33
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
44
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
5-
github.com/cometbft/cometbft v0.37.5 h1:/U/TlgMh4NdnXNo+YU9T2NMCWyhXNDF34Mx582jlvq0=
6-
github.com/cometbft/cometbft v0.37.5/go.mod h1:QC+mU0lBhKn8r9qvmnq53Dmf3DWBt4VtkcKw2C81wxY=
75
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
86
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
97
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
@@ -31,8 +29,6 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq
3129
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
3230
github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM=
3331
github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs=
34-
github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 h1:Dx7Ovyv/SFnMFw3fD4oEoeorXc6saIiQ23LrGLth0Gw=
35-
github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4=
3632
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
3733
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
3834
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
@@ -48,8 +44,6 @@ github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0leargg
4844
github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk=
4945
github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ=
5046
github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog=
51-
github.com/sasha-s/go-deadlock v0.3.5 h1:tNCOEEDG6tBqrNDOX35j/7hL5FcFViG6awUGROb2NsU=
52-
github.com/sasha-s/go-deadlock v0.3.5/go.mod h1:bugP6EGbdGYObIlx7pUZtWqlvo8k9H6vCBBsiChJQ5U=
5347
github.com/smartcontractkit/chainlink-common v0.3.1-0.20241127162636-07aa781ee1f4 h1:atCZ1jol7a+tdtgU/wNqXgliBun5H7BjGBicGL8Tj6o=
5448
github.com/smartcontractkit/chainlink-common v0.3.1-0.20241127162636-07aa781ee1f4/go.mod h1:bQktEJf7sJ0U3SmIcXvbGUox7SmXcnSEZ4kUbT8R5Nk=
5549
github.com/smartcontractkit/libocr v0.0.0-20241007185508-adbe57025f12 h1:NzZGjaqez21I3DU7objl3xExTH4fxYvzTqar8DC6360=

multinode/node_lifecycle_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ import (
44
"errors"
55
"fmt"
66
"math/big"
7+
"math/rand/v2"
8+
"strconv"
79
"sync"
810
"sync/atomic"
911
"testing"
1012

11-
"github.com/cometbft/cometbft/libs/rand"
1213
prom "github.com/prometheus/client_model/go"
1314
"github.com/stretchr/testify/assert"
1415
"github.com/stretchr/testify/mock"
@@ -368,7 +369,7 @@ func TestUnit_NodeLifecycle_aliveLoop(t *testing.T) {
368369
rpc.On("GetInterceptedChainInfo").Return(ChainInfo{}, ChainInfo{}).Once()
369370
go writeHeads(t, ch, head{BlockNumber: blockNumber - 1}, head{BlockNumber: blockNumber}, head{BlockNumber: blockNumber - 1})
370371
}).Return((<-chan Head)(ch), sub, nil).Once()
371-
name := "node-" + rand.Str(5)
372+
name := "node-" + strconv.Itoa(rand.IntN(1_000_000)) //nolint:gosec // G404 just test data
372373
node := newDialedNode(t, testNodeOpts{
373374
config: testNodeConfig{},
374375
chainConfig: clientMocks.ChainConfig{FinalityDepthVal: finalityDepth},
@@ -444,7 +445,7 @@ func TestUnit_NodeLifecycle_aliveLoop(t *testing.T) {
444445
ch := make(chan Head)
445446
rpc.On("SubscribeToFinalizedHeads", mock.Anything).Return((<-chan Head)(ch), newSub(t), nil).Once()
446447
rpc.On("GetInterceptedChainInfo").Return(ChainInfo{}, ChainInfo{}).Once()
447-
name := "node-" + rand.Str(5)
448+
name := "node-" + strconv.Itoa(rand.IntN(1_000_000)) //nolint:gosec // G404 just test data
448449
node := newSubscribedNode(t, testNodeOpts{
449450
config: testNodeConfig{},
450451
chainConfig: clientMocks.ChainConfig{

0 commit comments

Comments
 (0)