Skip to content

Commit

Permalink
feat: updated mitum-currency model
Browse files Browse the repository at this point in the history
  • Loading branch information
soonkuk committed Nov 11, 2024
1 parent 7ab38c0 commit 8e858f5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
13 changes: 11 additions & 2 deletions cmds/run_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,18 @@ func (cmd *RunCommand) setDigestNetworkClient(
return nil, err
}

connectionPool, err := launch.NewConnectionPool(
1<<9,
params.ISAAC.NetworkID(),
nil,
)
if err != nil {
return nil, err
}

handlers = handlers.SetNetworkClientFunc(
func() (*launch.LocalParams, *quicmemberlist.Memberlist, []quicstream.ConnInfo, error) { // nolint:contextcheck
return params, memberList, design.ConnInfo, nil
func() (*quicstream.ConnectionPool, *quicmemberlist.Memberlist, []quicstream.ConnInfo, error) { // nolint:contextcheck
return connectionPool, memberList, design.ConnInfo, nil
},
)

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ go 1.22
toolchain go1.22.1

require (
github.com/ProtoconNet/mitum-currency/v3 v3.0.0-alpha.0.20240902003652-0d5fd2acf44e
github.com/ProtoconNet/mitum2 v0.0.0-20240805062025-57b0a3c5b436
github.com/ProtoconNet/mitum-currency/v3 v3.0.0-alpha.0.20241101032517-b63f777108fd
github.com/ProtoconNet/mitum2 v0.0.0-20241101032300-fbbe79d8122c
github.com/alecthomas/kong v0.9.0
github.com/arl/statsviz v0.6.0
github.com/gorilla/mux v1.8.1
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0=
github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ=
github.com/ProtoconNet/mitum-currency/v3 v3.0.0-alpha.0.20240902003652-0d5fd2acf44e h1:XwbhFsDHpWdQy0VrySM1XKKkfqFj1PmTDX3TMb3Q8D0=
github.com/ProtoconNet/mitum-currency/v3 v3.0.0-alpha.0.20240902003652-0d5fd2acf44e/go.mod h1:wO1SV6t1f2khkwCYk4pXo3xtoWuINnD0H3YpN/9Vsgs=
github.com/ProtoconNet/mitum2 v0.0.0-20240805062025-57b0a3c5b436 h1:wKPjBq1fc1nQSbDe91HTSuMAv8Yc2OuLUaKqYnhRDZk=
github.com/ProtoconNet/mitum2 v0.0.0-20240805062025-57b0a3c5b436/go.mod h1:/Y6m8c5zaH8onJtrEVNFM7VciS989GeBSjacXaSDiGQ=
github.com/ProtoconNet/mitum-currency/v3 v3.0.0-alpha.0.20241101032517-b63f777108fd h1:ppobyF19Nqupu7DIbvc2qxzfNTGF0HM1crfPk0/fzF4=
github.com/ProtoconNet/mitum-currency/v3 v3.0.0-alpha.0.20241101032517-b63f777108fd/go.mod h1:PJIwiI0RuvZJdCcHi5k49/0BSelsUpjdHy2uTCVKqp8=
github.com/ProtoconNet/mitum2 v0.0.0-20241101032300-fbbe79d8122c h1:x01a3bKb6/YVDeqFZ0apI7TQWX6RDlqtxktim9kQsSs=
github.com/ProtoconNet/mitum2 v0.0.0-20241101032300-fbbe79d8122c/go.mod h1:/Y6m8c5zaH8onJtrEVNFM7VciS989GeBSjacXaSDiGQ=
github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII=
github.com/alecthomas/assert/v2 v2.6.0 h1:o3WJwILtexrEUk3cUVal3oiQY2tfgr/FHWiz/v2n4FU=
github.com/alecthomas/assert/v2 v2.6.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k=
Expand Down

0 comments on commit 8e858f5

Please sign in to comment.