Skip to content

Commit d3e5141

Browse files
authored
Merge pull request #2363 from CortexFoundation/dev
table writer 1.0.4 update
2 parents 4648add + 9cb19c1 commit d3e5141

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+24059
-7967
lines changed

core/rawdb/database.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -513,9 +513,9 @@ func InspectDatabase(db ctxcdb.Database, keyPrefix, keyStart []byte) error {
513513
total += ancient.size()
514514
}
515515
table := tablewriter.NewWriter(os.Stdout)
516-
table.SetHeader([]string{"Database", "Category", "Size", "Items"})
517-
table.SetFooter([]string{"", "Total", total.String(), " "})
518-
table.AppendBulk(stats)
516+
table.Header([]string{"Database", "Category", "Size", "Items"})
517+
table.Footer([]string{"", "Total", total.String(), " "})
518+
table.Append(stats)
519519
table.Render()
520520

521521
if unaccounted.size > 0 {

crypto/kzg4844/kzg4844_ckzg_cgo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"sync"
2525

2626
"github.com/CortexFoundation/CortexTheseus/common/hexutil"
27-
gokzg4844 "github.com/crate-crypto/go-kzg-4844"
27+
gokzg4844 "github.com/crate-crypto/go-eth-kzg"
2828
ckzg4844 "github.com/ethereum/c-kzg-4844/bindings/go"
2929
)
3030

crypto/kzg4844/kzg4844_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"testing"
2222

2323
"github.com/consensys/gnark-crypto/ecc/bls12-381/fr"
24-
gokzg4844 "github.com/crate-crypto/go-kzg-4844"
24+
gokzg4844 "github.com/crate-crypto/go-eth-kzg"
2525
)
2626

2727
func randFieldElement() [32]byte {

go.mod

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.6.1
77
github.com/CortexFoundation/inference v1.0.2-0.20230307032835-9197d586a4e8
88
github.com/CortexFoundation/statik v0.0.0-20210315012922-8bb8a7b5dc66
9-
github.com/CortexFoundation/torrentfs v1.0.69-0.20250506101620-39689adc3b78
9+
github.com/CortexFoundation/torrentfs v1.0.69-0.20250515103356-dcc757b78082
1010
github.com/VictoriaMetrics/fastcache v1.12.2
1111
github.com/arsham/figurine v1.3.0
1212
github.com/aws/aws-sdk-go-v2 v1.36.3
@@ -19,7 +19,6 @@ require (
1919
github.com/cockroachdb/pebble v1.1.5
2020
github.com/consensys/gnark-crypto v0.17.0
2121
github.com/crate-crypto/go-eth-kzg v1.3.0
22-
github.com/crate-crypto/go-kzg-4844 v1.1.0
2322
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
2423
github.com/deckarep/golang-set/v2 v2.8.0
2524
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0
@@ -51,7 +50,7 @@ require (
5150
github.com/muesli/reflow v0.3.0
5251
github.com/muesli/termenv v0.16.0
5352
github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416
54-
github.com/olekukonko/tablewriter v0.0.5
53+
github.com/olekukonko/tablewriter v1.0.4
5554
github.com/peterh/liner v1.2.2
5655
github.com/pion/stun/v2 v2.0.0
5756
github.com/rs/cors v1.11.1
@@ -141,14 +140,15 @@ require (
141140
github.com/consensys/bavard v0.1.30 // indirect
142141
github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect
143142
github.com/crate-crypto/go-ipa v0.0.0-20240724233137-53bbb0ceb27a // indirect
144-
github.com/dgraph-io/badger/v4 v4.7.1-0.20250418053210-c49539fdff7d // indirect
143+
github.com/dgraph-io/badger/v4 v4.7.1-0.20250514104548-674c0a729e03 // indirect
145144
github.com/dgraph-io/ristretto/v2 v2.2.0 // indirect
146145
github.com/dlclark/regexp2 v1.11.5 // indirect
147146
github.com/dustin/go-humanize v1.0.1 // indirect
148147
github.com/edsrzf/mmap-go v1.2.0 // indirect
149148
github.com/elliotchance/orderedmap v1.8.0 // indirect
150149
github.com/emicklei/dot v1.8.0 // indirect
151150
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
151+
github.com/fatih/color v1.18.0 // indirect
152152
github.com/garslo/gogen v0.0.0-20170306192744-1d203ffc1f61 // indirect
153153
github.com/getsentry/sentry-go v0.32.0 // indirect
154154
github.com/go-llsqlite/adapter v0.2.0 // indirect
@@ -188,6 +188,8 @@ require (
188188
github.com/ncruces/go-strftime v0.1.9 // indirect
189189
github.com/nutsdb/nutsdb v1.0.4 // indirect
190190
github.com/oapi-codegen/runtime v1.1.1 // indirect
191+
github.com/olekukonko/errors v1.1.0 // indirect
192+
github.com/olekukonko/ll v0.0.7 // indirect
191193
github.com/otiai10/copy v1.14.1 // indirect
192194
github.com/otiai10/mint v1.6.3 // indirect
193195
github.com/pion/datachannel v1.5.10 // indirect
@@ -230,7 +232,7 @@ require (
230232
github.com/tklauser/numcpus v0.10.0 // indirect
231233
github.com/ucwong/filecache v1.0.6-0.20230405163841-810d53ced4bd // indirect
232234
github.com/ucwong/go-ttlmap v1.0.2-0.20221020173635-331e7ddde2bb // indirect
233-
github.com/ucwong/golang-kv v1.0.24-0.20250421221638-c97e903c247a // indirect
235+
github.com/ucwong/golang-kv v1.0.24-0.20250515102819-a6b899554118 // indirect
234236
github.com/ucwong/shard v1.0.1-0.20250426172507-f1db2901f62c // indirect
235237
github.com/wlynxg/anet v0.0.5 // indirect
236238
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
@@ -251,7 +253,7 @@ require (
251253
gopkg.in/yaml.v2 v2.4.0 // indirect
252254
gopkg.in/yaml.v3 v3.0.1 // indirect
253255
lukechampine.com/blake3 v1.4.1 // indirect
254-
modernc.org/libc v1.65.3 // indirect
256+
modernc.org/libc v1.65.6 // indirect
255257
modernc.org/mathutil v1.7.1 // indirect
256258
modernc.org/memory v1.10.0 // indirect
257259
modernc.org/sqlite v1.37.0 // indirect

go.sum

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ github.com/CortexFoundation/statik v0.0.0-20210315012922-8bb8a7b5dc66/go.mod h1:
7070
github.com/CortexFoundation/torrentfs v1.0.13-0.20200623060705-ce027f43f2f8/go.mod h1:Ma+tGhPPvz4CEZHaqEJQMOEGOfHeQBiAoNd1zyc/w3Q=
7171
github.com/CortexFoundation/torrentfs v1.0.14-0.20200703071639-3fcabcabf274/go.mod h1:qnb3YlIJmuetVBtC6Lsejr0Xru+1DNmDCdTqnwy7lhk=
7272
github.com/CortexFoundation/torrentfs v1.0.20-0.20200810031954-d36d26f82fcc/go.mod h1:N5BsicP5ynjXIi/Npl/SRzlJ630n1PJV2sRj0Z0t2HA=
73-
github.com/CortexFoundation/torrentfs v1.0.69-0.20250506101620-39689adc3b78 h1:YkAQJM4cuFotLqe5b+8Hmrbf4kqeM06ui4a5ra3FT3E=
74-
github.com/CortexFoundation/torrentfs v1.0.69-0.20250506101620-39689adc3b78/go.mod h1:bC/TJ3/wHlwqVuyzZiOXbxhfjaWX6Up8Cdy/bNMyhK8=
73+
github.com/CortexFoundation/torrentfs v1.0.69-0.20250515103356-dcc757b78082 h1:khocOxtfd5dRXP/vy2aW3X+TPr+E4qGxuer1C/ufDrc=
74+
github.com/CortexFoundation/torrentfs v1.0.69-0.20250515103356-dcc757b78082/go.mod h1:PIQILdPmlWnEpKrCCZ4y8D/3gMWxhnQ8PgkrMQyaIYA=
7575
github.com/CortexFoundation/wormhole v0.0.2-0.20241128010855-a23c88842cfa h1:46VAGWxOwpoLlPNcR9etAhK0NtT215skO9Wl4i14r4o=
7676
github.com/CortexFoundation/wormhole v0.0.2-0.20241128010855-a23c88842cfa/go.mod h1:ipzmPabDgzYKUbXkGVe2gTkBEp+MsDx6pXGiuYzmP6s=
7777
github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
@@ -398,8 +398,6 @@ github.com/crate-crypto/go-eth-kzg v1.3.0 h1:05GrhASN9kDAidaFJOda6A4BEvgvuXbazXg
398398
github.com/crate-crypto/go-eth-kzg v1.3.0/go.mod h1:J9/u5sWfznSObptgfa92Jq8rTswn6ahQWEuiLHOjCUI=
399399
github.com/crate-crypto/go-ipa v0.0.0-20240724233137-53bbb0ceb27a h1:W8mUrRp6NOVl3J+MYp5kPMoUZPp7aOYHtaua31lwRHg=
400400
github.com/crate-crypto/go-ipa v0.0.0-20240724233137-53bbb0ceb27a/go.mod h1:sTwzHBvIzm2RfVCGNEBZgRyjwK40bVoun3ZnGOCafNM=
401-
github.com/crate-crypto/go-kzg-4844 v1.1.0 h1:EN/u9k2TF6OWSHrCCDBBU6GLNMq88OspHHlMnHfoyU4=
402-
github.com/crate-crypto/go-kzg-4844 v1.1.0/go.mod h1:JolLjpSff1tCCJKaJx4psrlEdlXuJEC996PL3tTAFks=
403401
github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
404402
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
405403
github.com/dave/jennifer v1.2.0/go.mod h1:fIb+770HOpJ2fmN9EPPKOqm1vMGhB+TwXKMZhrIygKg=
@@ -414,8 +412,8 @@ github.com/decred/dcrd/crypto/blake256 v1.1.0 h1:zPMNGQCm0g4QTY27fOCorQW7EryeQ/U
414412
github.com/decred/dcrd/crypto/blake256 v1.1.0/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo=
415413
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 h1:NMZiJj8QnKe1LgsbDayM4UoHwbvwDRwnI3hwNaAHRnc=
416414
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0/go.mod h1:ZXNYxsqcloTdSy/rNShjYzMhyjf0LaoftYK0p+A3h40=
417-
github.com/dgraph-io/badger/v4 v4.7.1-0.20250418053210-c49539fdff7d h1:Jqi1PskeOI4dqgH/G095suLN2jpoPfukOJj8JMdq/l4=
418-
github.com/dgraph-io/badger/v4 v4.7.1-0.20250418053210-c49539fdff7d/go.mod h1:fG8zKdz39pTCsqmyrj0cKcpb3DI6Y1PXVoxLpvKsPcs=
415+
github.com/dgraph-io/badger/v4 v4.7.1-0.20250514104548-674c0a729e03 h1:XHt6L0Mc7G4KS9Zd+dYnXhJpetyU1Ak8DXNvtfeW5Gc=
416+
github.com/dgraph-io/badger/v4 v4.7.1-0.20250514104548-674c0a729e03/go.mod h1:7cwIbutQ57AMb/npA+6VKSs5PhDMt0s3Ese+qEqeS/o=
419417
github.com/dgraph-io/ristretto/v2 v2.2.0 h1:bkY3XzJcXoMuELV8F+vS8kzNgicwQFAaGINAEJdWGOM=
420418
github.com/dgraph-io/ristretto/v2 v2.2.0/go.mod h1:RZrm63UmcBAaYWC1DotLYBmTvgkrs0+XhBd7Npn7/zI=
421419
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
@@ -467,6 +465,8 @@ github.com/ethereum/go-ethereum v1.15.11/go.mod h1:mf8YiHIb0GR4x4TipcvBUPxJLw1mF
467465
github.com/ethereum/go-verkle v0.2.2 h1:I2W0WjnrFUIzzVPwm8ykY+7pL2d4VhlsePn4j7cnFk8=
468466
github.com/ethereum/go-verkle v0.2.2/go.mod h1:M3b90YRnzqKyyzBEWJGqj8Qff4IDeXnzFw0P9bFw3uk=
469467
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
468+
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
469+
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
470470
github.com/ferranbt/fastssz v0.1.4 h1:OCDB+dYDEQDvAgtAGnTSidK1Pe2tW3nFV40XyMkTeDY=
471471
github.com/ferranbt/fastssz v0.1.4/go.mod h1:Ea3+oeoRGGLGm5shYAeDgu6PGUlcvQhE2fILyD9+tGg=
472472
github.com/fjl/gencodec v0.1.0 h1:B3K0xPfc52cw52BBgUbSPxYo+HlLfAgWMVKRWXUXBcs=
@@ -900,11 +900,15 @@ github.com/oapi-codegen/runtime v1.1.1/go.mod h1:SK9X900oXmPWilYR5/WKPzt3Kqxn/uS
900900
github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs=
901901
github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
902902
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
903+
github.com/olekukonko/errors v1.1.0 h1:RNuGIh15QdDenh+hNvKrJkmxxjV4hcS50Db478Ou5sM=
904+
github.com/olekukonko/errors v1.1.0/go.mod h1:ppzxA5jBKcO1vIpCXQ9ZqgDh8iwODz6OXIGKU8r5m4Y=
905+
github.com/olekukonko/ll v0.0.7 h1:K66xcUlG2qWRhPoLw/cidmbv4pDDJtZuvJGsR5QTzXo=
906+
github.com/olekukonko/ll v0.0.7/go.mod h1:En+sEW0JNETl26+K8eZ6/W4UQ7CYSrrgg/EdIYT2H8g=
903907
github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo=
904908
github.com/olekukonko/tablewriter v0.0.4/go.mod h1:zq6QwlOf5SlnkVbMSr5EoBv3636FWnp+qbPhuoO21uA=
905909
github.com/olekukonko/tablewriter v0.0.5-0.20200416053754-163badb3bac6/go.mod h1:zq6QwlOf5SlnkVbMSr5EoBv3636FWnp+qbPhuoO21uA=
906-
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
907-
github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
910+
github.com/olekukonko/tablewriter v1.0.4 h1:Lnz32TW+q/MQhA4qwhIyLA+j5hZ3dcNpZrcpPC+4iaM=
911+
github.com/olekukonko/tablewriter v1.0.4/go.mod h1:eUa4ArVhHJYomS27xrJB/GyLtnzKKVkZeLM6/MNO+pA=
908912
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
909913
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
910914
github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
@@ -1237,8 +1241,8 @@ github.com/ucwong/filecache v1.0.6-0.20230405163841-810d53ced4bd h1:gBtlvLAsgLk+
12371241
github.com/ucwong/filecache v1.0.6-0.20230405163841-810d53ced4bd/go.mod h1:ddwX+NCjMZPdpzcGh1fcEbNTUTCtKgt2hC2rqvmLKgA=
12381242
github.com/ucwong/go-ttlmap v1.0.2-0.20221020173635-331e7ddde2bb h1:dVZH3AH9f7zB3VBmsjn25B7lfcAyMP4QxdFYTrfj7tg=
12391243
github.com/ucwong/go-ttlmap v1.0.2-0.20221020173635-331e7ddde2bb/go.mod h1:3yswsBsVuwsOjDvFfC5Na9XSEf4HC7mj3W3g6jvSY/s=
1240-
github.com/ucwong/golang-kv v1.0.24-0.20250421221638-c97e903c247a h1:J40JKO3UxDjyBPOYSriOtOnHytHhjKR/4KlYRmVprV4=
1241-
github.com/ucwong/golang-kv v1.0.24-0.20250421221638-c97e903c247a/go.mod h1:lF5x7iTKVaxBSZXxFYuQp/QN2UyTGpPwtYqdxwpo2Mo=
1244+
github.com/ucwong/golang-kv v1.0.24-0.20250515102819-a6b899554118 h1:cgkmsv++MqGrAXn5sJfryb0exPDJFJfqmPVkCQS7jvQ=
1245+
github.com/ucwong/golang-kv v1.0.24-0.20250515102819-a6b899554118/go.mod h1:womlW31ECPNpfcko6Z6MjdlHz+jf9VQcjLWXTadESvc=
12421246
github.com/ucwong/golang-set v1.8.1-0.20200419153428-d7b0b1ac2d43/go.mod h1:xu0FaiQFGbBcFZj2o7udZ5rbA8jRTsv47hkPoG5qQNM=
12431247
github.com/ucwong/goleveldb v1.0.3-0.20200508074755-578cba616f37/go.mod h1:dgJUTtDxq/ne6/JzZhHzF24OL/uqILz9IWk8HmT4V2g=
12441248
github.com/ucwong/goleveldb v1.0.3-0.20200618184106-f1c6bc3a428b/go.mod h1:7Sq6w7AfEZuB/a6mrlvHCSXCSkqojCMMrM3Ei12QAT0=
@@ -1766,14 +1770,14 @@ lukechampine.com/blake3 v1.4.1 h1:I3Smz7gso8w4/TunLKec6K2fn+kyKtDxr/xcQEN84Wg=
17661770
lukechampine.com/blake3 v1.4.1/go.mod h1:QFosUxmjB8mnrWFSNwKmvxHpfY72bmD2tQ0kBMM3kwo=
17671771
modernc.org/cc/v4 v4.26.1 h1:+X5NtzVBn0KgsBCBe+xkDC7twLb/jNVj9FPgiwSQO3s=
17681772
modernc.org/cc/v4 v4.26.1/go.mod h1:uVtb5OGqUKpoLWhqwNQo/8LwvoiEBLvZXIQ/SmO6mL0=
1769-
modernc.org/ccgo/v4 v4.27.1 h1:emhLB4uoOmkZUnTDFcMI3AbkmU/Evjuerit9Taqe6Ss=
1770-
modernc.org/ccgo/v4 v4.27.1/go.mod h1:543Q0qQhJWekKVS5P6yL5fO6liNhla9Lbm2/B3rEKDE=
1773+
modernc.org/ccgo/v4 v4.28.0 h1:rjznn6WWehKq7dG4JtLRKxb52Ecv8OUGah8+Z/SfpNU=
1774+
modernc.org/ccgo/v4 v4.28.0/go.mod h1:JygV3+9AV6SmPhDasu4JgquwU81XAKLd3OKTUDNOiKE=
17711775
modernc.org/fileutil v1.3.1 h1:8vq5fe7jdtEvoCf3Zf9Nm0Q05sH6kGx0Op2CPx1wTC8=
17721776
modernc.org/fileutil v1.3.1/go.mod h1:HxmghZSZVAz/LXcMNwZPA/DRrQZEVP9VX0V4LQGQFOc=
17731777
modernc.org/gc/v2 v2.6.5 h1:nyqdV8q46KvTpZlsw66kWqwXRHdjIlJOhG6kxiV/9xI=
17741778
modernc.org/gc/v2 v2.6.5/go.mod h1:YgIahr1ypgfe7chRuJi2gD7DBQiKSLMPgBQe9oIiito=
1775-
modernc.org/libc v1.65.3 h1:umuvKKemW1RATk14y2f0IMPYa/Bi8NB+iL+kOQYNWAw=
1776-
modernc.org/libc v1.65.3/go.mod h1:VI3V2S5mNka4deJErQ0jsMXe7jgxojE2fOB/mWoHlbc=
1779+
modernc.org/libc v1.65.6 h1:OhJUhmuJ6MVZdqL5qmnd0/my46DKGFhSX4WOR7ijfyE=
1780+
modernc.org/libc v1.65.6/go.mod h1:MOiGAM9lrMBT9L8xT1nO41qYl5eg9gCp9/kWhz5L7WA=
17771781
modernc.org/mathutil v1.7.1 h1:GCZVGXdaN8gTqB1Mf/usp1Y/hSqgI2vAGGP4jZMCxOU=
17781782
modernc.org/mathutil v1.7.1/go.mod h1:4p5IwJITfppl0G4sUEDtCr4DthTaT47/N3aT6MhfgJg=
17791783
modernc.org/memory v1.10.0 h1:fzumd51yQ1DxcOxSO+S6X7+QTuVU+n8/Aj7swYjFfC4=

vendor/github.com/crate-crypto/go-kzg-4844/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

vendor/github.com/crate-crypto/go-kzg-4844/.golangci.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)