instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
segmentio__kafka-go__783 | segmentio/kafka-go | 783 | defect | 88b462b787cf469b3a546564fb04554ae187bbc2 | 2d8cec1cc7e074e2ae5c4b5aff7d713e61579b93 | Fix go vet issues: example tests, returning a mutex copy | Example tests are renamed to fit required naming conventions. This
caused them to be relocated in generated docs.
Also, a minor problem with writer.newBatchQueue is fixed, in order to
avoid an unnecessary copy of a newly created object holding a mutex.
| diff --git a/example_consumergroup_test.go b/example_consumergroup_test.go
index adbf940eb..aec5b1907 100644
--- a/example_consumergroup_test.go
+++ b/example_consumergroup_test.go
@@ -8,7 +8,7 @@ import (
"github.com/segmentio/kafka-go"
)
-func ExampleConsumerGroupParallelReaders() {
+func ExampleGeneration_Start... | 3 | 3 | 1 | [{"id": "G0", "claim": "The existing code copies batchQueue's sync.Mutex whenever the struct is passed by value and may only work because the function gets inlined, so it should be restructured (e.g. a *batchQueue queue field or an init method instead of a constructor) so that no lock copies happen.", "category": "corr... | null |
segmentio__kafka-go__791 | segmentio/kafka-go | 791 | defect | 2e02f3700766d1bfa6af17499bbb625c98fdaf59 | 6e9ef27b8a73ccdcc51baf6bd535f966b9a829fe | Fix a rare panic during consumer group rebalance | Currently, there is a `sync.WaitGroup` that is used for process accounting
with go routines started by `Generation.Start`. It is used when a
generation is ending to ensure that all of the Start-ed functions exit
before the next generation can start. There is an edge case that can
cause panic as written up in #786... | diff --git a/consumergroup.go b/consumergroup.go
index 00380ce9b..f94b93afb 100644
--- a/consumergroup.go
+++ b/consumergroup.go
@@ -322,9 +322,17 @@ type Generation struct {
conn coordinator
- once sync.Once
- done chan struct{}
- wg sync.WaitGroup
+ // the following fields are used for process accounting to s... | 1 | 1 | 0 | [{"id": "G0", "claim": "Defer the unlock in Generation.Start instead of unlocking manually right before each return, since the critical section need not be minimized.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
segmentio__kafka-go__798 | segmentio/kafka-go | 798 | defect | e1f5945be0b2e606b6826e9e5b0ec0a9ce68bd93 | aee4be0c71574177f2ad7c3b5accb5b9e81282b1 | SASL Mechanism: AWS MSK IAM (making requested edits) | This builds on #763 and adds a commit which makes the changes I requested on the latest of that PR. My intention is to push this commit over to paxosglobal's fork, but I couldn't figure out how to open my PR to reflect that intent. As such, I'm opening the PR directly against main to see if my fixes bring everything in... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index b0024d1b1..e0e9d9d6e 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -34,12 +34,20 @@ jobs:
- checkout
- restore_cache:
key: kafka-go-mod-{{ checksum "go.sum" }}-1
- - run: go mod download
+ - run:
+ name: Dow... | 1 | 1 | 1 | [{"id": "G0", "claim": "The submodule go.mod should reference a kafka-go version published after the sasl changes are merged, and the reviewer is unsure how the replace statement will behave when the module is imported elsewhere.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce... | null |
segmentio__kafka-go__813 | segmentio/kafka-go | 813 | defect | 063303c58563b1be8530175a8a7641ef9385a7b7 | 40eb822b98e717e049f940645652bcf5d5886078 | Fix offset when a batch ends with compacted records | Based off of https://github.com/segmentio/kafka-go/pull/807 and also related to https://github.com/segmentio/kafka-go/pull/709
```
Move the fix inside `Batch.readMessage`
The reasoning is that `Batch.readMessage` is normally where we update
the batch offset so the goal is to do this additional update to the
ba... | diff --git a/batch.go b/batch.go
index 3af692ec0..9acf5c2d9 100644
--- a/batch.go
+++ b/batch.go
@@ -190,6 +190,8 @@ func (batch *Batch) ReadMessage() (Message, error) {
return
},
)
+ // A batch may start before the requested offset so skip messages
+ // until the requested offset is reached.
for batch.conn ... | 2 | 2 | 1 | [{"id": "G0", "claim": "A batch cannot exist without messages — the real case is a batch with no new (unread) messages at the end, so the test's premise is wrong and its comments misdescribe the scenario, since Kafka skips fully compacted segments during Fetch.", "category": "testing", "verdict": "supported", "priority... | null |
segmentio__kafka-go__839 | segmentio/kafka-go | 839 | defect | d5d9116c820e66943605e2c599cceae11e9bb5c1 | 0e86ba327bdffb586e53a80675805dd0d3c78823 | Add CreateAcls Admin API support | This adds the `CreateACLs` method to the `Client` struct to supports the `CreateAcls` Admin API.
See https://github.com/segmentio/kafka-go/issues/729
See https://kafka.apache.org/protocol.html#The_Messages_CreateAcls
Signed-off-by: Guillaume Fillon <guillaume.fillon@auth0.com> | diff --git a/createacl_test.go b/createacl_test.go
new file mode 100644
index 000000000..f9078dbd6
--- /dev/null
+++ b/createacl_test.go
@@ -0,0 +1,43 @@
+package kafka
+
+import (
+ "context"
+ "testing"
+)
+
+func TestClientCreateACLs(t *testing.T) {
+ client, shutdown := newLocalClient()
+ defer shutdown()
+
+ res, ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request is not passing the CI steps due to failing tests, and the tests must be fixed up before the PR can move forward.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
segmentio__kafka-go__873 | segmentio/kafka-go | 873 | defect | 6b6b5bd764c9d2db34b6406631c80802424e48aa | 054fc07ab0e388b2d810d2618f16ba8b5702350f | Add the field to avoid creating missing topic. | Add field AllowAutoTopicCreation to Writer struct.
It prevents the side-effect of creating missing topic.
Closes #872
| diff --git a/writer.go b/writer.go
index cdbe07129..89ac87192 100644
--- a/writer.go
+++ b/writer.go
@@ -185,6 +185,9 @@ type Writer struct {
// If nil, DefaultTransport is used.
Transport RoundTripper
+ // AllowAutoTopicCreation notifies writer to create topic is missing.
+ AllowAutoTopicCreation bool
+
// Man... | 7 | 6 | 1 | [{"id": "G0", "claim": "The new field's documentation should note that the default behaviour changes from the previous automatic topic creation (the doc comment on AllowAutoTopicCreation should be expanded to reflect the behaviour change).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope"... | null |
segmentio__kafka-go__914 | segmentio/kafka-go | 914 | defect | cc6b7a135c2a924a5adbd92697bca8d355dc7456 | abce88ea29ab9c04eaf92d9328596d8f9ed0b80d | enable errorlint linter and fix issues | This PR enables the [errorlint](https://github.com/polyfloyd/go-errorlint) linter in golangci-lint. This specifically ensures that errors are properly checked, avoiding things like direct equality (`==`) checks and type coercion/switch, to ensure as much compatibility with improvements to errors in go 1.13+.
This is... | diff --git a/.golangci.yml b/.golangci.yml
index d7a698e69..9a96986b5 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -1,6 +1,7 @@
linters:
enable:
- bodyclose
+ - errorlint
- goconst
- godot
- gofmt
@@ -10,5 +11,4 @@ linters:
disable:
# Temporarily disabling so it can be addressed ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The linter had trouble with the switch — questioning why the pull request rewrote a switch statement as an if/else chain in consumergroup.go.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
segmentio__kafka-go__977 | segmentio/kafka-go | 977 | defect | ab4d8da0e00f400b8b89b00379b1b718788207d8 | 264bc93f58817d58e7f8539941ddc13f9af0ddd4 | Fix aws_msk_iam_v2 module Authentication failure bug | Use `CredentialsProvider` instead of static `Credentials`. See #976 | diff --git a/sasl/aws_msk_iam_v2/README.md b/sasl/aws_msk_iam_v2/README.md
index 2a7af8a37..e3b6c537b 100644
--- a/sasl/aws_msk_iam_v2/README.md
+++ b/sasl/aws_msk_iam_v2/README.md
@@ -12,49 +12,4 @@ You can add this module to your dependency by running the command below.
go get github.com/segmentio/kafka-go/sasl/aws_... | 3 | 3 | 0 | [{"id": "G0", "claim": "Keep the original field name `Credentials` instead of renaming it to `CredentialsProvider`, since it is shorter, communicates the purpose, and matches the name used in `aws.Config`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "D... | null |
segmentio__ksuid__10 | segmentio/ksuid | 10 | defect | 260b89c5852463e4ab1139cbe628404b93d1055e | 256c749b6adad4a7753c32e6be83cbae945cdcc0 | optimizations | I noticed that the parsing and formatting operations of KSUIDs were quite inefficient regarding memory allocations, so I spent a bit of time optimizing them.
The biggest gain came from appending to the output buffer when converting from one base to another (instead of prepending) and reversing it at the end. I also ... | diff --git a/base62.go b/base62.go
index 329e561..01afa58 100644
--- a/base62.go
+++ b/base62.go
@@ -1,17 +1,17 @@
package ksuid
-import "bytes"
+import "strings"
// lexographic ordering (based on Unicode table) is 0-9A-Za-z
-var base62Characters = []byte("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu... | 4 | 1 | 0 | [{"id": "G0", "claim": "The fixed-size `bq := [stringEncodedLength]byte{}` buffer may make appendBase2Base panic on inputs longer than stringEncodedLength instead of harmlessly growing, so the change appears to sneakily violate base2base's original arbitrary-length generality.", "category": "correctness", "verdict": "o... | null |
segmentio__ksuid__11 | segmentio/ksuid | 11 | defect | 2a5ff14b083336e28641d86008fee84ae598de60 | 587dfa8979605d0ddc3db336e9a5f48c7a541dba | optimize base conversions | The PR adds optimized implementations of the base conversion routines. The trade off is on having an implementation that's a bit more complex, but performs much better.
Most of the efficiency is gained by working on 4-bytes words instead of single bytes when converting between base 256 and 62 (it made the routines 1... | diff --git a/base62.go b/base62.go
index 62eb3d3..6d58359 100644
--- a/base62.go
+++ b/base62.go
@@ -1,81 +1,182 @@
package ksuid
-import "strings"
+const (
+ // lexographic ordering (based on Unicode table) is 0-9A-Za-z
+ base62Characters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
+ zeroStri... | 3 | 1 | 0 | [{"id": "G0", "claim": "The magic numbers 10 and 36 in base62Value should be named constants (or a global var) since they represent the offset of 'A'/'a' in base62Characters.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The base62Value(src[N])... | null |
segmentio__ksuid__22 | segmentio/ksuid | 22 | defect | 9cb615b023d376fe5590ade4f92e11a9482b69cb | 0e02b55c0a56dd4620ef540a0512913836325a2f | add method to get the previous and next KSUID | This PR adds two methods to the KSUID type to get the previous and next id from a reference. | diff --git a/ksuid.go b/ksuid.go
index e2c62dc..2c700ec 100644
--- a/ksuid.go
+++ b/ksuid.go
@@ -7,6 +7,7 @@ import (
"encoding/binary"
"fmt"
"io"
+ "math"
"sync"
"time"
)
@@ -311,3 +312,33 @@ func quickSort(a []KSUID, lo int, hi int) {
quickSort(a, i+1, hi)
}
}
+
+// Next returns the next KSUID after ... | 2 | 1 | 0 | [{"id": "G0", "claim": "TestNext/TestPrev could be better written as subtests named min/max rather than re-use the id.. variables.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It may be worth storing the result of makeUint128(0, 1) in a variab... | null |
segmentio__nsq-go__18 | segmentio/nsq-go | 18 | defect | c0f1f6f9576b7d82ca4223802bb741ae8621faea | cbe828a0b9c54d390908b8184da2fa1dd4dc74b4 | Filter healthy host | To avoid issues during tasks maintenance, we need to filter for healthy hosts.
Using /v1/health/checks/nsqlookupd to get the list of current healthy hosts. | diff --git a/nsqlookup/resolver.go b/nsqlookup/resolver.go
index 408afec..4f05ead 100644
--- a/nsqlookup/resolver.go
+++ b/nsqlookup/resolver.go
@@ -4,6 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
+ "io/ioutil"
"net"
"net/http"
"strconv"
@@ -114,8 +115,6 @@ type ConsulResolver struct {
func (r *Consul... | 7 | 7 | 0 | [{"id": "G0", "claim": "The method `getConsul` should be renamed to `get` because \"Consul\" is redundant in a method of the ConsulResolver type and the name does not say what it does.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instead of lo... | null |
segmentio__nsq-go__2 | segmentio/nsq-go | 2 | defect | 35e7797bccede13bdf330c592b5d092ad020c3fb | e6556188420b85b03b2bc2c6937f2726b80e8ba6 | add producer | @calvinfo
@thehydroimpulse
@yields
Hey guys, here's a piece of code to implement a NSQ producer to replace nsqio/go-nsq in our workers to solve the connection timeouts and deadlock issue we've seen today.
The implementation is pretty much complete, working on tests now. I'd like to have a review of the logic... | diff --git a/README.md b/README.md
index 18ab03f..831216a 100644
--- a/README.md
+++ b/README.md
@@ -51,3 +51,32 @@ func main() {
}
}
```
+
+Producer
+--------
+
+```go
+package main
+
+import (
+ "github.com/segmentio/nsq-go"
+)
+
+func main() {
+ // Starts a new producer that publishes to the TCP endpoi... | 2 | 1 | 0 | [{"id": "G0", "claim": "The Requests method should not be public, since users can always compose channels and publish in a non-blocking way using goroutines instead.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The connection cleanup steps duplicated a... | null |
segmentio__nsq-go__36 | segmentio/nsq-go | 36 | defect | ff4eef968f46eb580d9dba4f637c5dfb1e5b2208 | 852ab82103b8667811c8d0d38bd98b7d693ea735 | Drain in-flight messages on close | This PR introduces draining and requeueing of any in-flight messages on an orderly shutdown of a nsq consumer. The logic entails sending a CLS to each nsqd server and waiting for all runConn routines to return before continuing the shutdown sequence. Once all runConn routines have exited we can be certain we will not r... | diff --git a/conn.go b/conn.go
index ee8f7cf..4b6179f 100644
--- a/conn.go
+++ b/conn.go
@@ -19,6 +19,7 @@ const (
DefaultLookupTimeout = 10 * time.Second
DefaultMaxRetryTimeout = 10 * time.Second
DefaultMinRetryTimeout = 10 * time.Millisecond
+ DefaultDrainTimeout = time.Second
NoTimeout = time.Duration... | 8 | 6 | 0 | [{"id": "G0", "claim": "The ConnMeta helper struct should be made unexported.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Closing c.msgs once the first join has returned would allow drainRemaining to be rewritten as a simple range over the channel.", ... | null |
segmentio__nsq-go__48 | segmentio/nsq-go | 48 | defect | 77d084769c21b8788cebe27756261618037f4ad6 | 5e8843eb14f36a5e6e9cf7bb691726199d986baa | [EDGE-137] added drainAndJoinAwait for consumer stop, to handle deadlock scenario related to NSQ message timeout | The consumer `Stop` could be end up in deadlock in the `runConn` routine, when we are in the shutdown `Consumer.run()` in the `<-c.done` case.
It could happen when the consumer received the number of messages >= maxInFlight and we did not **ack** any of those messages back to NSQ within **message-time** period (de... | diff --git a/consumer.go b/consumer.go
index e4b0a11..4a961d9 100644
--- a/consumer.go
+++ b/consumer.go
@@ -189,9 +189,9 @@ func (c *Consumer) run() {
log.Println("Consumer initiating shutdown sequence")
// Send a CLS to all Cmd Channels for all connections
c.close()
- log.Println("awaiting connection wa... | 12 | 10 | 0 | [{"id": "G0", "claim": "The drainAndJoinAwait doc comment misspells 'until' as 'util' and says 'will be return'; it should read 'until all runConn routines return.'", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment's phrase 'if consum... | null |
segmentio__nsq-go__5 | segmentio/nsq-go | 5 | defect | 6e937a515151306cc47c1d03baddb5de21b0972f | 4a3c2def59de6160d6013fc44193563fd3f60037 | refactor to support passing a cancellation context | @yields
@calvinfo
@rbranson
@thehydroimpulse
I revisited the code to support passing a cancellation context to the nsqlookup engines, this helps setting deadlines on engine operations or cancelling in-flight operations when clients are unexpectedly going away.
Please take a look and let me know if anything... | diff --git a/nsqlookup/consul.go b/nsqlookup/consul.go
index 7036838..3248353 100644
--- a/nsqlookup/consul.go
+++ b/nsqlookup/consul.go
@@ -2,6 +2,7 @@ package nsqlookup
import (
"bytes"
+ "context"
"encoding/json"
"fmt"
"io"
@@ -23,10 +24,6 @@ const (
// DefaultConsulNamespace is the key namespace used b... | 1 | 1 | 1 | [{"id": "G0", "claim": "The context parameter should be the first parameter of the Engine methods instead of the last, per Go's context conventions and possible future tooling.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sehmaschine__django-filebrowser__315 | sehmaschine/django-filebrowser | 315 | defect | 4d4f0d9367476ef2aa50fafdd5263a4fcfce2f9c | 6b3233da747acb33d473354e44d131b422de5c2d | Allow custom versions without VERSIONS definition | This PR enables the usage of `django-filebrowser` with [django-image-cropping](https://github.com/jonasundderwolf/django-image-cropping), as proposed in #313.
There's [another PR to the django-image-cropping](https://github.com/jonasundderwolf/django-image-cropping/pull/92) project in order to provide the other side o... | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 0bf839ec5..95af276d6 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -11,6 +11,11 @@ Changelog
3.7.2 (not yet released)
------------------------
+* New: An image version is generated by passing the source image through a series of :ref:`settings... | 10 | 7 | 3 | [{"id": "G0", "claim": "The pull request adds new moving parts (processor pipeline, namers, extra options) without any tests, which the maintainer considered a major issue.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Adding a new setting in-between a... | null |
sei-protocol__sei-chain__2235 | sei-protocol/sei-chain | 2,235 | defect | 4197add9e4d0dc3a36df2afc75bc19e9c6050c1d | af1e38dfae4e6abae20b3a821b6a3cb5f369ebba | Rate limit eth call in Simulation API | ## Describe your changes and provide context
This PR adds a new request limiter for SimulationApi to prevent too many concurrent eth_call from hamering the CPU and halt the node
## Testing performed to validate your change
Added a few unit test to test this new request limiter | diff --git a/evmrpc/simulate.go b/evmrpc/simulate.go
index 6e92926cc7..1fef96dc6f 100644
--- a/evmrpc/simulate.go
+++ b/evmrpc/simulate.go
@@ -6,10 +6,11 @@ import (
"errors"
"fmt"
"math/big"
+ "runtime"
"strings"
"time"
- "github.com/sei-protocol/sei-chain/precompiles/wasmd"
+ "golang.org/x/sync/semaphore"... | 2 | 1 | 1 | [{"id": "G0", "claim": "CodeQL flags the new `runtime` package imports in evmrpc/simulate.go and evmrpc/config.go as sensitive imports that may be a possible source of non-determinism.", "category": "security", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a test case veri... | null |
sei-protocol__sei-chain__2423 | sei-protocol/sei-chain | 2,423 | defect | 6a5c937fa9737b1e3aa2288b9349d5a9f51c9d79 | 06b99b93bb9e66ea7041018a1130fdb5a5493a9a | config: update app config default values | ## Describe your changes and provide context
## Testing performed to validate your change
| diff --git a/sei-cosmos/server/config/config.go b/sei-cosmos/server/config/config.go
index b68e6aabc9..33467acf9d 100644
--- a/sei-cosmos/server/config/config.go
+++ b/sei-cosmos/server/config/config.go
@@ -2,6 +2,7 @@ package config
import (
"fmt"
+ "runtime"
"strings"
storetypes "github.com/cosmos/cosmos-s... | 10 | 4 | 0 | [{"id": "G0", "claim": "The added `import \"runtime\"` is flagged as a sensitive system package that may be a possible source of non-determinism.", "category": "security", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "getConcurrencyWorkers could use the built-in min and max fu... | null |
sei-protocol__sei-chain__2443 | sei-protocol/sei-chain | 2,443 | defect | 2ab1daf3d3d25fec30c7b40599ebdadd208243ac | db429014353512cc6baf214e8974e07d982a286d | Add otel metric utils provider | ## Describe your changes and provide context
This PR is adding otel metrics provider so that we can add otel metrics in other sub modules.
Remove duplicate integration test.
## Testing performed to validate your change
| diff --git a/go.mod b/go.mod
index bb260a9360..3fd4c260c5 100644
--- a/go.mod
+++ b/go.mod
@@ -35,17 +35,19 @@ require (
github.com/sirkon/goproxy v1.4.8
github.com/spf13/cast v1.5.0
github.com/spf13/cobra v1.8.1
- github.com/stretchr/testify v1.10.0
+ github.com/stretchr/testify v1.11.1
github.com/syndtr/golev... | 2 | 1 | 0 | [{"id": "G0", "claim": "The Prometheus exporter namespace \"seidb\" does not make sense for the OTEL metrics provider being set up here.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The failure of SetupOtelMetricsProvider in NewBaseApp is only logged w... | null |
sei-protocol__sei-chain__2449 | sei-protocol/sei-chain | 2,449 | defect | 9ca21bf9ef8ba82c96e7f6a8a994e83bcec253d1 | e328471016f565c7b0d70b5529b14484d9ee807a | Delete existing zeroed out EVM contract state | ## Describe your changes and provide context
This PR will do a gradual deletion of existing zeroed out EVM contract state. In EndBlock, we will iterate over 100 kv pairs in the EVM contract state prefix each block and if a zero is found the kv pair is deleted. We will keep a checkpoint for where to pick up on the ne... | diff --git a/x/evm/keeper/storage_cleanup.go b/x/evm/keeper/storage_cleanup.go
new file mode 100644
index 0000000000..012fbfd9dc
--- /dev/null
+++ b/x/evm/keeper/storage_cleanup.go
@@ -0,0 +1,96 @@
+package keeper
+
+import (
+ "bytes"
+
+ sdk "github.com/cosmos/cosmos-sdk/types"
+ "github.com/sei-protocol/sei-chain/x/... | 5 | 3 | 0 | [{"id": "G0", "claim": "The security scanner reports a path flow from BeginBlock/EndBlock to a panic call through the newly added PruneZeroStorageSlots invocation in the EndBlock consensus method.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Add c... | null |
sei-protocol__sei-chain__2561 | sei-protocol/sei-chain | 2,561 | defect | a07d293e74bf00a55ed3fb334aa9def118851c1c | f371d657ad93c2e6dd2bfb229741b2441e822df5 | Make seid rolback idempodent and remove --hard | ## Describe your changes and provide context
Summary of Changes
1. Get rid of --hard, which is always very confusing. The new behavior will always remove blocks, which is equal to setting --hard in the past. We don't really need the scenario for not deleting blocks.
2. Made rollback more idempotent
- Changed or... | diff --git a/sei-cosmos/server/rollback.go b/sei-cosmos/server/rollback.go
index 623f4b640b..d112ae1008 100644
--- a/sei-cosmos/server/rollback.go
+++ b/sei-cosmos/server/rollback.go
@@ -7,9 +7,45 @@ import (
"github.com/cosmos/cosmos-sdk/server/types"
"github.com/spf13/cobra"
tmcmd "github.com/tendermint/tenderm... | 4 | 2 | 1 | [{"id": "G0", "claim": "LoadTendermintState only needs the state store, so loadStateAndBlockStore should be refactored to avoid unnecessarily opening the block and state DBs.", "category": "performance", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The rollback flow should be... | null |
sei-protocol__sei-chain__2675 | sei-protocol/sei-chain | 2,675 | defect | 02fa6d1167241892df33ea1f1fc03d068aaa9789 | aa1ae54bdbdf1bec274e34c13ecb3d6531a38bdf | Adjusted RPC http requests to use POST instead of GET | RPC calls for the EVM CLI were attempting to send methods via GET instead of POST, resulting in failed extraction of results from the associated RPC calls as none were being returned.
Adjustments to `getChainId()`, `getNonce()` and `CmdAssociateAddress()` were made
NOTE: the latter `CmdAssociateAddress` had an i... | diff --git a/x/evm/client/cli/tx.go b/x/evm/client/cli/tx.go
index d6f183c135..0852a0c642 100644
--- a/x/evm/client/cli/tx.go
+++ b/x/evm/client/cli/tx.go
@@ -134,7 +134,7 @@ func CmdAssociateAddress() *cobra.Command {
if err != nil {
return err
}
- req, err := http.NewRequest(http.MethodGet, rpc, string... | 7 | 7 | 1 | [{"id": "G0", "claim": "Tests should not depend on a remote endpoint being up and available by default; instead run conditionally (env var, skipped by default, on CI) or use the httptest package to assert the expected behaviour at unit level.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "... | null |
sei-protocol__sei-chain__2695 | sei-protocol/sei-chain | 2,695 | defect | 5283c2f9d7cd08fbac3db3e3adc9fbda8caaba54 | 7ab65848b6fb29314427b717c980ed6d45866a6f | Upgrade to PebbleDB v2 + Add DefaultComparer Config Option | ## Describe your changes and provide context
PebbleDB v2 Upgrade:
- Benchmarks show significant improvements in write/read throughput and latency
- Updated imports across sei-db/db_engine/pebbledb/ and sei-db/db_engine/pebbledb/mvcc/
- Added required v2 comparer functions (ComparePointSuffixes, CompareRangeSuffixes... | diff --git a/sei-db/config/config.go b/sei-db/config/config.go
index ea40ed7f86..32ad8d6435 100644
--- a/sei-db/config/config.go
+++ b/sei-db/config/config.go
@@ -100,6 +100,14 @@ type StateStoreConfig struct {
// Whether to keep last version of a key during pruning or delete
// defaults to true
KeepLastVersion b... | 3 | 1 | 0 | [{"id": "G0", "claim": "If a comparer mismatch happens when opening a database, some error should be shown to the user - asking how that failure is surfaced when Pebble refuses to open the database.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G3", "claim": "The 32 MB ... | null |
sei-protocol__sei-chain__2710 | sei-protocol/sei-chain | 2,710 | defect | 14f8cf3f770c5da961d2324e0af8489f3deee2bb | 6e680a7ea31179bea442d9b393bd0ae01b79e72a | feat(flatkv): introduce interface layer (Store/Iterator) and typed keys | ## Describe your changes and provide context
This PR introduces the FlatKV interface layer, designed to bridge x/evm state access with a multi-DB storage architecture:
- Store Interface: Defines a unified contract for EVM state storage that internally maps logical keys to isolated physical DBs (accounts, code, st... | diff --git a/sei-db/state_db/sc/flatkv/api.go b/sei-db/state_db/sc/flatkv/api.go
new file mode 100644
index 0000000000..fc5d04344a
--- /dev/null
+++ b/sei-db/state_db/sc/flatkv/api.go
@@ -0,0 +1,84 @@
+package flatkv
+
+import (
+ "io"
+
+ "github.com/sei-protocol/sei-chain/sei-db/proto"
+)
+
+// Exporter streams FlatK... | 7 | 6 | 2 | [{"id": "G0", "claim": "The Store method should return the Exporter interface value rather than a pointer to the interface, to avoid dereferencing and non-nil-pointer-wrapping-nil-interface pitfalls.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove ... | null |
sei-protocol__sei-chain__2754 | sei-protocol/sei-chain | 2,754 | defect | 0d2a66ab4e4f14f861a951c7edff11622d94ca21 | 0935d03433d0323a8b273ea51b2390def27cf053 | Composite State Store part 1: EVM config and type definitions | ## Describe your changes and provide context
- Adds configuration and type definitions for the EVM state store layer:
- EVMStateStoreConfig in config/config.go for enabling/configuring EVM SS
- Type aliases to commonevm.EVMKeyKind for EVM store types
- Helper functions AllEVMStoreTypes() and StoreTypeName()
## T... | diff --git a/go.work.sum b/go.work.sum
index 5f8653c7e0..23d282b3db 100644
--- a/go.work.sum
+++ b/go.work.sum
@@ -126,11 +126,18 @@ cloud.google.com/go/vpcaccess v1.8.2/go.mod h1:4yvYKNjlNjvk/ffgZ0PuEhpzNJb8HybSM
cloud.google.com/go/webrisk v1.10.2/go.mod h1:c0ODT2+CuKCYjaeHO7b0ni4CUrJ95ScP5UFl9061Qq8=
cloud.google.... | 4 | 3 | 2 | [{"id": "G0", "claim": "The store type definitions may not belong in config.go and should perhaps be moved to another file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "StoreCodeSize should not be stored in the new EVM state any more because i... | null |
sei-protocol__sei-chain__2812 | sei-protocol/sei-chain | 2,812 | defect | 7c7d146af0c2a5b706094463a9926a1d325fd7d7 | 59b6e36d38f5f64b15a57e1a95872ae9dd6a6d1c | Adjust fallback logic | Refactor ExecuteTxsConcurrently to centralize giga→v2 fallback. Giga functions now return a bool instead of handling fallback internally.
| diff --git a/app/app.go b/app/app.go
index c25e0d9a5b..f2f865e703 100644
--- a/app/app.go
+++ b/app/app.go
@@ -1358,22 +1358,22 @@ func (app *App) ProcessTxsSynchronousV2(ctx sdk.Context, txs [][]byte, typedTxs
return txResults
}
-func (app *App) ProcessTxsSynchronousGiga(ctx sdk.Context, txs [][]byte, typedTxs []... | 1 | 1 | 1 | [{"id": "G0", "claim": "ExecuteTxsConcurrently should check the error returned from the giga path and at least scream (log loudly) when the error is not ErrGigaFallbackToV2, instead of silently treating every giga error as a fallback signal.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"... | null |
sei-protocol__sei-chain__2814 | sei-protocol/sei-chain | 2,814 | defect | 7e01541f37c37bde1fa2b35f254e6eb9f7a2a371 | 353c42d82f6dbcdd5cb0274cb2f8c9772abf39e8 | feat: make snapshot prune async | - Run pruneSnapshots() asynchronously (go db.pruneSnapshots()) to avoid blocking Commit
- Use TryLock instead of Lock so overlapping prunes are skipped rather than queued
- Add logging for prune start/skip/completion with duration
- Add idempotent Close() guard to prevent double-close
- Update test to use Eventuall... | diff --git a/sei-db/state_db/sc/memiavl/db.go b/sei-db/state_db/sc/memiavl/db.go
index c3b5d0148b..ce97f2829b 100644
--- a/sei-db/state_db/sc/memiavl/db.go
+++ b/sei-db/state_db/sc/memiavl/db.go
@@ -11,6 +11,7 @@ import (
"strconv"
"strings"
"sync"
+ "sync/atomic"
"time"
"github.com/alitto/pond"
@@ -74,8 +7... | 5 | 3 | 0 | [{"id": "G0", "claim": "The new CAS guard causes a snapshot rewrite finishing while a prune is in progress to log 'skipped' and never schedule a follow-up prune, so snapshots created after the prune started are not considered and, if no further rewrite occurs, stale snapshots are never pruned (a regression versus the p... | null |
sei-protocol__sei-chain__2887 | sei-protocol/sei-chain | 2,887 | defect | 00e41381cb17df2d9e4c87a38e201e17ad8c8b3c | 5ededaf7981aaabaeb77f2df765e21dc92818ff2 | fixed autorestart cooldown | There was a semantic mismatch between blocksync sending at most 1 message to the restartCh, and WaitForQuitSignals which ignored messages until cooldown has passed. I think that cooldown in blocksync logic was exactly trying to avoid sending messages when WaitForQuitSignals could have ignored them, which is a very frag... | diff --git a/sei-cosmos/server/start.go b/sei-cosmos/server/start.go
index b55ca79008..c17ed03c26 100644
--- a/sei-cosmos/server/start.go
+++ b/sei-cosmos/server/start.go
@@ -175,9 +175,6 @@ is performed. Note, when enabled, gRPC will also be automatically enabled.
tracerProviderOptions = []trace.TracerProviderOpt... | 4 | 3 | 1 | [{"id": "G0", "claim": "The `// DEPRECATED` comment on RestartCooldownSeconds should follow the repo's Upper-D `// Deprecated:` convention instead of all caps, and as a bonus tell users that the cooldown mechanism is completely removed so the configuration has no effect.", "category": "documentation", "verdict": "suppo... | null |
sei-protocol__sei-chain__2908 | sei-protocol/sei-chain | 2,908 | defect | ca2a7c8c52a1a034231f14f66eaf433b1259b019 | ff3d07e80f43b72f7539ab8cfabf09a374a06cf6 | fix(consensus): harden FullProposal.Verify and NewProposal against malicious proposals | ## Summary
- Verify proposer signature in `FullProposal.Verify` (was only checking key identity, not the actual sig)
- Verify LaneQC header hash matches the proposal's `LaneRange.LastHash`
- Reject proposals containing non-committee lanes via new `Proposal.Verify` method
- Add leader validation to `NewProposal` constr... | diff --git a/sei-tendermint/internal/autobahn/types/proposal.go b/sei-tendermint/internal/autobahn/types/proposal.go
index 424f706170..71baa920b3 100644
--- a/sei-tendermint/internal/autobahn/types/proposal.go
+++ b/sei-tendermint/internal/autobahn/types/proposal.go
@@ -280,6 +280,10 @@ func (m *FullProposal) Verify(c ... | 8 | 8 | 1 | [{"id": "G0", "claim": "The added check that the proposal holds exactly as many lane ranges as the committee has lanes won't work because LaneRange() returns [0,0) when a committee lane's range is missing from the proposal, so the missing-lane case slips through (and the reviewer suggests the Proposal type deserves its... | null |
sei-protocol__sei-chain__2970 | sei-protocol/sei-chain | 2,970 | defect | bdaed70f059c9d7b6adb35351125168f47b0671a | 2835b538c9f49bf6df7616a8e2239f8f4c56edd5 | Add snapshot import for Giga Live State | ## Describe your changes and provide context
This PR add feature to import snapshot
- Add feature for FlatKV import from snapshot
- Make go benchmark able to load from local snapshot
## Testing performed to validate your change
| diff --git a/sei-db/state_db/bench/README.md b/sei-db/state_db/bench/README.md
index 5b83d69de8..c446ea4129 100644
--- a/sei-db/state_db/bench/README.md
+++ b/sei-db/state_db/bench/README.md
@@ -21,6 +21,25 @@ to run for a long time while you watch the periodic progress report.
Progress is printed to stdout every fe... | 7 | 3 | 2 | [{"id": "G0", "claim": "Calling the system time (time.Now/time.Since for elapsed logging in importSnapshot) may be a possible source of non-determinism.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Spawning a Go routine in openSnapshotStream to fe... | null |
sei-protocol__sei-chain__2995 | sei-protocol/sei-chain | 2,995 | defect | 1c2910c6cd7ed81aa34c3ba3511321f1573b8e8d | 5203ac4237b15ef32ba42b5fb29051b8d5f83fcf | Extend DB benchmark to support state store (SS) backends | ## Describe your changes and provide context
- Extend cryptosim DB benchmark to support state store (SS) backends via a lightweight StateStore → DBWrapper adapter
- Adds SSPebbleDB (raw MVCC) and SSComposite (full CompositeStateStore with EVM sub-DB routing) so the same ERC20 changeset workload can benchmark the hi... | diff --git a/sei-db/state_db/bench/bench_ss_test.go b/sei-db/state_db/bench/bench_ss_test.go
new file mode 100644
index 0000000000..cb62c71744
--- /dev/null
+++ b/sei-db/state_db/bench/bench_ss_test.go
@@ -0,0 +1,45 @@
+package bench
+
+import (
+ "testing"
+
+ "github.com/sei-protocol/sei-chain/sei-db/state_db/bench/w... | 1 | 1 | 0 | [{"id": "G0", "claim": "The config entries in ss-composite-config.json that merely mirror the default configuration should be removed (only DataDir is required), since shadowing defaults risks config drift when the defaults change over time.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc... | null |
sei-protocol__sei-chain__3001 | sei-protocol/sei-chain | 3,001 | defect | cdf1103ccbce017ca2de5b14a3d6b5a9bb04f451 | b597550f35ce3760b3a9f8cb34bd92fa96b29cfe | Fix lock issue in cacheMultiStore | ## Describe your changes and provide context
This PR is to fix a locking issue in CacheMultiStore
## Testing performed to validate your change
Added a unit test
| diff --git a/sei-cosmos/storev2/rootmulti/store.go b/sei-cosmos/storev2/rootmulti/store.go
index 81786721fa..64bbfa723d 100644
--- a/sei-cosmos/storev2/rootmulti/store.go
+++ b/sei-cosmos/storev2/rootmulti/store.go
@@ -252,6 +252,11 @@ func (rs *Store) CacheWrapWithTrace(storeKey types.StoreKey, _ io.Writer, _ type
fu... | 2 | 2 | 1 | [{"id": "G0", "claim": "Avoid using require inside goroutines; use assert instead so a failed check does not panic and lets the test proceed and fail.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test does not actually exercise the re-entrant-RLoc... | null |
sei-protocol__sei-chain__3002 | sei-protocol/sei-chain | 3,002 | defect | 555d5209d06aaca3cc4fde6a12d192669a9da652 | e0f970777dcf376be9924050689adc6936b61e28 | Add opts for scdual write | ## Describe your changes and provide context
Add flags/opts to allow setting dual write and dual read for SC, remove migration flag as well
## Testing performed to validate your change
Tested on RPC node
| diff --git a/app/seidb.go b/app/seidb.go
index cf169316be..7893c49413 100644
--- a/app/seidb.go
+++ b/app/seidb.go
@@ -16,21 +16,20 @@ import (
const (
// SC Store configs
- FlagSCEnable = "state-commit.sc-enable"
- FlagSCDirectory = "state-commit.sc-directory"
- Fl... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new SC write-mode/read-mode options should be parsed like the SS config parser does: only overwrite the config when the string is non-empty, validate it with config.ParseWriteMode/ParseReadMode, and panic on invalid values, instead of blindly casting the raw string.", "category": "correctnes... | null |
sei-protocol__sei-chain__3003 | sei-protocol/sei-chain | 3,003 | defect | 555d5209d06aaca3cc4fde6a12d192669a9da652 | b9921e02b7222ae8ac4757dbff275f1a3f453582 | fix(flatkv): fix state sync panic on nil DB handles during snapshot restore | Issue:
rootmulti.Restore closes the SC store before calling Importer(), leaving all DB handles nil. The old code created a KVImporter against the closed store, which panicked in commitGlobalMetadata() on the nil metadataDB.
A second bug in composite.SnapshotImporter.AddModule() never set currentModule, so the EVM... | diff --git a/sei-db/state_db/sc/composite/importer.go b/sei-db/state_db/sc/composite/importer.go
index a610788c47..4fffd5de2e 100644
--- a/sei-db/state_db/sc/composite/importer.go
+++ b/sei-db/state_db/sc/composite/importer.go
@@ -33,6 +33,7 @@ func (si *SnapshotImporter) Close() error {
}
func (si *SnapshotImporte... | 2 | 1 | 1 | [{"id": "G0", "claim": "FlatKV's directory appending should be done in the CompositeSC layer when initializing FlatKV instead of changing flatkvDir() in flatkv, and the test should use whatever path is passed in rather than being changed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intro... | null |
sei-protocol__sei-chain__3006 | sei-protocol/sei-chain | 3,006 | defect | 1c50d430304c38a4e9189f6da46cd6e2445b7c3d | 8586eca107599e8a6714de3ffad6db37c17b7879 | WAL utility tears itself down after the first error | ## Describe your changes and provide context
https://linear.app/seilabs/issue/STO-397/address-wal-feedback
Per feedback, the desired behavior of the WAL utility is that it should tear itself down after it encounters the first error.
## Testing performed to validate your change
Unit test coverage. | diff --git a/sei-db/wal/wal.go b/sei-db/wal/wal.go
index 0a8cb48dd8..15ed17aab5 100644
--- a/sei-db/wal/wal.go
+++ b/sei-db/wal/wal.go
@@ -6,6 +6,8 @@ import (
"fmt"
"os"
"path/filepath"
+ "strings"
+ "sync/atomic"
"time"
"github.com/tidwall/wal"
@@ -39,6 +41,11 @@ type WAL[T any] struct {
truncateChan ch... | 3 | 1 | 1 | [{"id": "G0", "claim": "The out-of-range truncate handling should be restructured so the \"out of range\" check is not entangled with the pre-wrapped error and the message is wrapped at each send site, in case the tidwall/wal library changes its error message wording in the future.", "category": "maintainability", "ver... | null |
sei-protocol__sei-chain__3011 | sei-protocol/sei-chain | 3,011 | defect | b9c9128b924f607e3d8f27e405aa65bd8c7ea5a8 | 665854e8d70ec72bd4c822c337ee56a61f044e56 | fix(flatkv): sync SNAPSHOT_BASE on WriteSnapshot to avoid unnecessary WAL catchup on restart | ## Describe your changes and provide context
## Testing performed to validate your change
| diff --git a/sei-db/state_db/sc/flatkv/snapshot.go b/sei-db/state_db/sc/flatkv/snapshot.go
index bbe6bf56fb..42e3a9ec32 100644
--- a/sei-db/state_db/sc/flatkv/snapshot.go
+++ b/sei-db/state_db/sc/flatkv/snapshot.go
@@ -478,6 +478,13 @@ func (s *CommitStore) WriteSnapshot(_ string) error {
return fmt.Errorf("update c... | 1 | 1 | 1 | [{"id": "G0", "claim": "TestWriteSnapshotUpdatesSnapshotBase initializes the store with NewCommitStore(dir, ...) but reads SNAPSHOT_BASE from filepath.Join(dir, \"data\", flatkvRootDir, ...), a path NewCommitStore never uses, so the read fails with ENOENT and the new regression test does not validate the behavior it in... | null |
sei-protocol__sei-chain__3026 | sei-protocol/sei-chain | 3,026 | defect | 6a57c4d27e472d2072193e9abcbab33c14a0fdbd | d09e3eb91100177f944d81b5fd3091254d081a02 | Update trace queue wait by timeout | ## Describe your changes and provide context
- Make trace RPC timeout apply to semaphore wait as well as trace execution
- Prevent queued trace requests from hanging indefinitely by making semaphore acquisition context-aware.
- `Add regression tests covering timeout while waiting for a slot and proper semaphore clea... | diff --git a/evmrpc/tracers.go b/evmrpc/tracers.go
index b97223d334..37a763fdac 100644
--- a/evmrpc/tracers.go
+++ b/evmrpc/tracers.go
@@ -48,12 +48,32 @@ type DebugAPI struct {
// acquireTraceSemaphore attempts to acquire a slot from the traceCallSemaphore.
// It returns a function that must be called (typically wit... | 3 | 3 | 2 | [{"id": "G0", "claim": "Re-check whether the context was cancelled after acquiring the semaphore slot, because select has no guaranteed ordering and a cancelled request may still slip through and consume a slot.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
sei-protocol__sei-chain__3029 | sei-protocol/sei-chain | 3,029 | defect | 9fcac13e2ea72273072062002b767853080abaac | 9e84ccf2212aee84bca851da207cda1716a2d8b5 | fix: carry PrepareQC lock across consecutive timeouts in voteTimeout | ## Summary
- **Safety bug fix**: `voteTimeout` only attached `i.PrepareQC` (current view) to TimeoutVotes. Since `pushTimeoutQC` clears `i.PrepareQC` on view change, consecutive timeouts (e.g. offline leader) would lose the PrepareQC lock. This produced a TimeoutQC with no `latestPrepareQC`, allowing a later leader to... | diff --git a/sei-tendermint/internal/autobahn/consensus/inner.go b/sei-tendermint/internal/autobahn/consensus/inner.go
index ae966d4185..20f0af7172 100644
--- a/sei-tendermint/internal/autobahn/consensus/inner.go
+++ b/sei-tendermint/internal/autobahn/consensus/inner.go
@@ -155,7 +155,17 @@ func (s *State) voteTimeout(... | 2 | 2 | 0 | [{"id": "G0", "claim": "Simplify the PrepareQC selection in voteTimeout to inherit the TimeoutQC's LatestPrepareQC only when no PrepareQC is present, as in `if tqc, ok := i.TimeoutQC.Get(); ok && !pqc.IsPresent() { pqc = tqc.LatestPrepareQC() }` (raised as a nit).", "category": "maintainability", "verdict": "supported"... | null |
sei-protocol__sei-chain__3058 | sei-protocol/sei-chain | 3,058 | defect | bb2c5b32c4530bf554b50b46eef9f3fff4c49fdd | ff0caa818676dd5db989693925d50893865af3a7 | Debug Trace Speedup | ## Describe your changes and provide context
- Avoid store-tracer overhead on ordinary debug_trace* calls; use debug_traceStateAccess when Cosmos/store-level access tracing is needed
- Keep profiled block tracing on the default tracer path while preserving legacy semantics for explicit tracers like flatCallTracer
... | diff --git a/app/app.go b/app/app.go
index e9e645b2f9..ce3de69155 100644
--- a/app/app.go
+++ b/app/app.go
@@ -2302,7 +2302,7 @@ func (app *App) RegisterTxService(clientCtx client.Context) {
func (app *App) RPCContextProvider(i int64) sdk.Context {
if i == evmrpc.LatestCtxHeight {
- return app.GetCheckCtx().WithI... | 3 | 1 | 1 | [{"id": "G0", "claim": "Blockaudit should be run against 10k blocks within each historical version (if not done already) to validate the change against edge cases in older upgrades.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If state access ceases t... | null |
sei-protocol__sei-chain__3075 | sei-protocol/sei-chain | 3,075 | defect | bb2c5b32c4530bf554b50b46eef9f3fff4c49fdd | d3e0c8517729f2fddd9d06ec467597aeedc3f081 | Fix commit and query contention | ## Describe your changes and provide context
Previously, there was an issue where Commit() and queries (getLogs, getReceiptByTxHash) into parquet via DuckDB would sometimes have lock contention because these queries would hold the read lock for the entire query, while Commit() stores receipts and during parquet file... | diff --git a/sei-db/ledger_db/parquet/reader.go b/sei-db/ledger_db/parquet/reader.go
index 67e0009557..11539190a3 100644
--- a/sei-db/ledger_db/parquet/reader.go
+++ b/sei-db/ledger_db/parquet/reader.go
@@ -23,7 +23,8 @@ type Reader struct {
db *sql.DB
basePath string
maxBlocksPerFile ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The test helper called from goroutines should return an error (used with an error group) instead of taking *testing.T and calling require, so failures inside non-test goroutines are captured rather than possibly not failing the test.", "category": "testing", "verdict": "supported", "priority": "... | null |
sei-protocol__sei-chain__3080 | sei-protocol/sei-chain | 3,080 | defect | d7086bdaa219d74f5a7c6a335b891b55f5bfb403 | aa68f8e30b3affef0f0b2dce131e5b83a8dafb7f | chore(evmrpc): expose eth_blobBaseFee on eth RPC surface | ## Describe your changes and provide context
Fixes PLT-161
Ref: [PLT-161](https://linear.app/seilabs/issue/PLT-161/expose-eth-blobbasefee-on-eth-rpc-surface)
## Testing performed to validate your change
| diff --git a/evmrpc/info.go b/evmrpc/info.go
index ca46f86925..8d75bfe634 100644
--- a/evmrpc/info.go
+++ b/evmrpc/info.go
@@ -16,7 +16,9 @@ import (
sdk "github.com/sei-protocol/sei-chain/sei-cosmos/types"
rpcclient "github.com/sei-protocol/sei-chain/sei-tendermint/rpc/client"
"github.com/sei-protocol/sei-chain/... | 6 | 6 | 2 | [{"id": "G0", "claim": "BlobBaseFee does needless setup (context provider, chain config, block time, and a call to a helper that ignores its arguments) just to return a constant, and could simply return the constant.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
sei-protocol__sei-chain__3090 | sei-protocol/sei-chain | 3,090 | defect | 843a717db689749c413bdf759edc0cf197915cbb | c2f07892abddce61c438aed78206c6055ef78b0e | fix(flatkv): purge stale data before state sync import | ## Summary
FlatKV state sync import previously only upserted snapshot key-value pairs into the existing store. Keys that existed locally but were absent from the remote snapshot survived the import, producing a mixed state with stale data. This PR introduces a full data purge before import so the resulting store exa... | diff --git a/sei-db/state_db/sc/flatkv/exporter_test.go b/sei-db/state_db/sc/flatkv/exporter_test.go
index 6a5ce4243c..e5234db6ab 100644
--- a/sei-db/state_db/sc/flatkv/exporter_test.go
+++ b/sei-db/state_db/sc/flatkv/exporter_test.go
@@ -325,3 +325,140 @@ func TestImportSurvivesReopen(t *testing.T) {
require.Equal... | 2 | 1 | 1 | [{"id": "G0", "claim": "Importer() purges the on-disk store before the first snapshot item is read, so an interrupted or corrupt state-sync stream (a decode/validation failure sets restoreErr in rootmulti's restore loop but still calls scImporter.Close(), finalizing the nodes imported so far) deletes the previously val... | null |
sei-protocol__sei-chain__3110 | sei-protocol/sei-chain | 3,110 | defect | 491d2c61636e1661ae6f5bd3431569bd54339045 | 8c48573381fa7a6f345a71fa863fb34442f194ff | Update rpc_bench to support fixed block ranges and file output | ## Describe your changes and provide context
- Add explicit start/end block selection to rpc_bench
- Send output to configurable file location
## Testing performed to validate your change
- Verified on node
| diff --git a/sei-db/tools/rpc_bench/main.go b/sei-db/tools/rpc_bench/main.go
index 870208821a..df51c91cc7 100644
--- a/sei-db/tools/rpc_bench/main.go
+++ b/sei-db/tools/rpc_bench/main.go
@@ -70,6 +70,80 @@ func (s *LatencyStats) Report() {
s.Method, s.Total, s.Errors, rps, p(0.50), p(0.95), p(0.99))
}
+func confi... | 2 | 1 | 0 | [{"id": "G0", "claim": "Remove the unreachable startBlock < 1 check, since the earlier startBlock <= 0 guard already returns an error for all non-positive values.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider capping the maximum differ... | null |
sei-protocol__sei-chain__3114 | sei-protocol/sei-chain | 3,114 | defect | f7104d8bca44d047d6245020cb85be1801515875 | 7915b72458c047398cd3f53d56ad1f71dc086f01 | fixed ValidatorInfo json encoding | There were 2 issues:
* for backward compatibility with CosmJS, PubKey needs to be a 0 key in case of non-validator node.
* decoding was broken altogether, because it always returned the zero value of ValidatorInfo | diff --git a/sei-tendermint/rpc/coretypes/responses.go b/sei-tendermint/rpc/coretypes/responses.go
index 4351d04069..cb8bdc1dba 100644
--- a/sei-tendermint/rpc/coretypes/responses.go
+++ b/sei-tendermint/rpc/coretypes/responses.go
@@ -129,6 +129,7 @@ type ValidatorInfo struct {
VotingPower int64
}
+// CosmJS compa... | 2 | 2 | 0 | [{"id": "G0", "claim": "In TestValidatorInfoJSONReencoding the TestDiff result should be asserted with require.NoError instead of an if/t.Fatal block, matching the style of the lines above.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comm... | null |
sei-protocol__sei-chain__3125 | sei-protocol/sei-chain | 3,125 | defect | 82751c6f74bcd6216d0ffbcb83773f764e074ae5 | d06ac3d3fc1d4797c4aad121ff80671b30eb7b93 | fix: eth_getBlockTransactionCountByNumber returns inconsistent count vs eth_getBlockByNumber | ## Describe your changes and provide context
Context: [PLT-193](https://linear.app/seilabs/issue/PLT-193/bug-eth-getblocktransactioncountbynumber-returns-inconsistent-count-vs)
Fixes PLT-193
## Testing performed to validate your change
| diff --git a/evmrpc/block.go b/evmrpc/block.go
index c1f8f0a999..3cb24dcf38 100644
--- a/evmrpc/block.go
+++ b/evmrpc/block.go
@@ -22,7 +22,6 @@ import (
banktypes "github.com/sei-protocol/sei-chain/sei-cosmos/x/bank/types"
rpcclient "github.com/sei-protocol/sei-chain/sei-tendermint/rpc/client"
"github.com/sei-pr... | 2 | 1 | 0 | [{"id": "G0", "claim": "Exporting getEvmTxCount might break something, and an unexported helper that delegates could be used instead.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Exporting CountEncodeTmBlockVisibleTransactions only for testing exposes ... | null |
sei-protocol__sei-chain__3136 | sei-protocol/sei-chain | 3,136 | defect | f0b7deb29790472e39a1c374b7fddb1ffd47ec4f | 888a86079aed571a3279c1f1b71f9590cdd1f407 | support for starting autobahn from non-zero global block (CON-225) | The first block number of the chain will most likely be specified via genesis. | diff --git a/sei-tendermint/internal/autobahn/autobahn.proto b/sei-tendermint/internal/autobahn/autobahn.proto
index b46b531fca..ce345cc131 100644
--- a/sei-tendermint/internal/autobahn/autobahn.proto
+++ b/sei-tendermint/internal/autobahn/autobahn.proto
@@ -114,6 +114,7 @@ message Proposal {
optional Timestamp crea... | 4 | 4 | 1 | [{"id": "G0", "claim": "firstBlock does not belong inside Committee, since it is only needed once on startup and a thin wrapper holding Committee plus firstBlock would be better, but for now a TODO documenting this should be added.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
sei-protocol__sei-chain__3143 | sei-protocol/sei-chain | 3,143 | defect | ac5ad8d5500d44594bf37d13d96d664fddccd1e8 | 2ed1e8bd26c943a04a2db52fd1df9dc96fcde6c2 | hit ledger cache first then duckdb | ## Describe your changes and provide context
cachedReceiptStore.FilterLogs previously queried the DuckDB/parquet backend unconditionally on every call, even when the entire requested block range was already present in the in-memory cache. For eth_getLogs / eth_getFilterLogs RPC calls targeting recent blocks — which is... | diff --git a/sei-db/ledger_db/receipt/cached_receipt_store.go b/sei-db/ledger_db/receipt/cached_receipt_store.go
index 64a2994aa5..ed524e9127 100644
--- a/sei-db/ledger_db/receipt/cached_receipt_store.go
+++ b/sei-db/ledger_db/receipt/cached_receipt_store.go
@@ -86,18 +86,28 @@ func (s *cachedReceiptStore) SetReceipts(... | 4 | 4 | 3 | [{"id": "G0", "claim": "The `maxBlock` field added to `logChunk` seems to be unused.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "LogMinBlock uses a 0 return value to mean an empty cache, so a genuinely cached genesis block (block 0) would be ... | null |
sei-protocol__sei-chain__3155 | sei-protocol/sei-chain | 3,155 | defect | 1938b27640e5e87d165ee4fc0b65034349504a4a | 88daf32a84076ae2799d0d9686e3a7c919c39471 | Restructure sei data folder for Giga | ## Describe your changes and provide context
The current data folder is not intuitive and not very clean for Giga storage. It currently looks like this:
<img width="1099" height="480" alt="image" src="https://github.com/user-attachments/assets/9f3b8f37-f74d-42fb-a9df-152660c774ed" />
The goal of this PR is to rest... | diff --git a/app/receipt_store_config.go b/app/receipt_store_config.go
index 8d2acfacf2..d5398eaf6b 100644
--- a/app/receipt_store_config.go
+++ b/app/receipt_store_config.go
@@ -1,9 +1,9 @@
package app
import (
- "path/filepath"
-
seidbconfig "github.com/sei-protocol/sei-chain/sei-db/config"
+
+ "github.com/sei-... | 7 | 4 | 3 | [{"id": "G0", "claim": "sei-tendermint/config/db.go duplicates the pathExists helper that the pull request also adds to sei-db/common/utils/path.go.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In loadStateAndBlockStore the error messages should... | null |
sei-protocol__sei-chain__3183 | sei-protocol/sei-chain | 3,183 | defect | c0119fd7d0add4bd55b04a5ed5cebd93fdd19986 | 049d538ff55d432abdf96f61b0b245ce6f97949f | Add historical state offload stream hook | ## Describe your changes and provide context
- Add a cryptosim historical offload benchmark backend that publishes changelog entries directly to Kafka instead of writing local state
- Support configurable Kafka batching/auth settings, including AWS MSK IAM, so the benchmark matches the intended cloud offload flow
- ... | diff --git a/go.mod b/go.mod
index d9e8e8994b..44e0094b76 100644
--- a/go.mod
+++ b/go.mod
@@ -69,6 +69,7 @@ require (
github.com/rakyll/statik v0.1.7
github.com/rs/cors v1.11.1
github.com/sasha-s/go-deadlock v0.3.5
+ github.com/segmentio/kafka-go v0.4.50
github.com/sei-protocol/goutils v0.0.2
github.com/sei-... | 3 | 2 | 1 | [{"id": "G0", "claim": "It is unclear why the Kafka config needs Username and Password fields to connect, and storing a username and password in a config seems insecure.", "category": "security", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The historical-offload factory setu... | null |
sei-protocol__sei-chain__3194 | sei-protocol/sei-chain | 3,194 | defect | 2426f3db437b9c7d5407cb5069e509594129e935 | 7f3ce094ee8c8331e476a6723ff066e815328f95 | feat: wire autobahn config propagation from top-level to GigaRouter (CON-232) | ## Summary
- Add `autobahn-config-file` field to config.toml pointing to a JSON file with the full autobahn configuration (empty = disabled)
- JSON config uses structured types: `validator_key` / `node_key` with prefixed string formats, `utils.Option` for optional fields, `utils.Duration` for human-readable durations
-... | diff --git a/sei-tendermint/config/config.go b/sei-tendermint/config/config.go
index e8c6e767c0..6283f379a7 100644
--- a/sei-tendermint/config/config.go
+++ b/sei-tendermint/config/config.go
@@ -63,15 +63,16 @@ type Config struct {
BaseConfig `mapstructure:",squash"`
// Options for services
- RPC *RPC... | 4 | 4 | 1 | [{"id": "G0", "claim": "buildGigaConfig should not silently return a nil config for an empty path — the reviewer first floats modelling the config with utils.Option, then asks that the path be checked at the call site and that buildGigaConfig return an error when the path is empty (or simply let loadAutobahnFileConfig ... | null |
sei-protocol__sei-chain__3209 | sei-protocol/sei-chain | 3,209 | defect | 8d751f648fbedcbad9a2500f556e87d00c9fd786 | 86a14808c360008544354a334c61d6aa09fb2aaf | mux stream kind mismatch fix (CON-240) | Made mux stream opening more strict:
* explicit kind when OPEN frame
* kind mismatch is detected instead of ignored
Added relevant tests. | diff --git a/sei-tendermint/internal/p2p/mux/mux.go b/sei-tendermint/internal/p2p/mux/mux.go
index 80f2807392..ad7cf1ec77 100644
--- a/sei-tendermint/internal/p2p/mux/mux.go
+++ b/sei-tendermint/internal/p2p/mux/mux.go
@@ -45,6 +45,9 @@ var errFrameAfterClose = errors.New("received frame after CLOSE frame")
var errToo... | 3 | 3 | 0 | [{"id": "G0", "claim": "In TestProtocol_AcceptDoubleOpen the failure message reports errTooManyMsgs as the expected error even though the test requires errAlreadyOpened, so it should say \"want errAlreadyOpened\".", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c... | null |
sei-protocol__sei-chain__3220 | sei-protocol/sei-chain | 3,220 | defect | 8d7e329666c4921bcc274588a70ab74f11e0beec | 2f9bcd28f222937909c48daccf09a2289e07cad5 | feat: add AUTOBAHN option to local docker cluster (CON-247) | ## Summary
- Add `AUTOBAHN=true` option to local docker cluster for testing autobahn consensus
- `NodeKey.SaveAs()` writes `node_pubkey.txt` alongside `node_key.json` (`node:ed25519:public:<hex>` format)
- `FilePVKey.Save()` writes `validator_pubkey.txt` alongside `priv_validator_key.json` (`validator:ed25519:public:<h... | diff --git a/Makefile b/Makefile
index 155a75e8bc..c615f4964b 100644
--- a/Makefile
+++ b/Makefile
@@ -293,7 +293,7 @@ docker-cluster-start: docker-cluster-stop build-docker-node
else \
DETACH_FLAG=""; \
fi; \
- DOCKER_PLATFORM=$(DOCKER_PLATFORM) USERID=$(shell id -u) GROUPID=$(shell id -g) GOCACHE=$(shell g... | 4 | 4 | 0 | [{"id": "G0", "claim": "Use the %s verb instead of %v in the pubkey format strings so the stringer value is formatted explicitly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Clean the generated pubkey file path with filepath.Clean before writ... | null |
sei-protocol__sei-chain__3223 | sei-protocol/sei-chain | 3,223 | defect | 1f4724d9c8c78cc281f2a13aa130a48ae7e6a610 | 26e8d46e8ae2cae282553d19b71dd090458ed70d | fix reconcile order, pruning spin, and WAL lock retention | ## Summary
Follow-up fixes to #3126 based on reviewer feedback:
1. **Fix reconcile order**: trim tail before prefix. When QCs WAL is empty (corruption), `Reset` blocks cursor to `committee.FirstBlock()`. Without this, prefix reconciliation fast-forwards both block and QC cursors to stale positions, causing "out of se... | diff --git a/sei-tendermint/internal/autobahn/consensus/persist/globalblocks.go b/sei-tendermint/internal/autobahn/consensus/persist/globalblocks.go
index 8d6637893f..e1c13e28cf 100644
--- a/sei-tendermint/internal/autobahn/consensus/persist/globalblocks.go
+++ b/sei-tendermint/internal/autobahn/consensus/persist/globa... | 3 | 2 | 1 | [{"id": "G0", "claim": "The reconcile comment's abbreviation 'fb' in the WAL-states table is unexplained and should be clarified.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When QCs are lost (corruption), reconcile should return a 'corrupted' ... | null |
sei-protocol__sei-chain__3227 | sei-protocol/sei-chain | 3,227 | defect | b57aeb84c94f4e39f6bd6dddb45655b383f67275 | 76be674995b90f9a0b327184a223df6d0d49f729 | Giga store migration guide | ## Describe your changes and provide context
- Giga Store migration guide + safety checks for EVM SS write/read modes
- Validates config-level mode combinations, rejects startup when the EVM SS DB is missing or empty while Cosmos SS has history, and rejects mismatched earliest versions post-recovery
- Together thes... | diff --git a/app/seidb.go b/app/seidb.go
index b86ece1eeb..be1eb78988 100644
--- a/app/seidb.go
+++ b/app/seidb.go
@@ -164,6 +164,11 @@ func parseSSConfigs(appOpts servertypes.AppOptions) config.StateStoreConfig {
}
ssConfig.ReadMode = parsedRM
}
+
+ // DB-state consistency checks live in the composite state st... | 1 | 1 | 1 | [{"id": "G0", "claim": "After state sync the SS restore path only sets earliestVersion, so the reviewer asks whether latestVersion is set as well — if it is not, GetLatestVersion() stays 0 until the first post-sync block commits, weakening the PR's own EVM SS safety checks in that window.", "category": "correctness", "... | null |
sei-protocol__sei-chain__3234 | sei-protocol/sei-chain | 3,234 | defect | 9795d18cc96d2d43c40911fdbf02d8233fd0e6b3 | f9913990852ada7d63f16043fb1f433066bfded0 | feat: add autobahn integration tests - batch 1 (CON-249) | ## Summary
Add `make autobahn-integration-test` target with 5 integration tests for the autobahn consensus mode:
1. **Block production** — verify height is advancing (via `abci_info`)
2. **Bank transfer** — send usei via `-b sync`, poll for balance
3. **Liveness under max faults** — kill `f` nodes (BFT bound), chain c... | diff --git a/Makefile b/Makefile
index c615f4964b..fe85c8ec02 100644
--- a/Makefile
+++ b/Makefile
@@ -347,6 +347,37 @@ giga-integration-test:
@echo "=== GIGA Integration Tests Complete ==="
.PHONY: giga-integration-test
+# Run Autobahn integration tests with an Autobahn-enabled cluster.
+autobahn-integration-test... | 1 | 1 | 0 | [{"id": "G0", "claim": "The integration tests should be written in Go rather than as a shell script.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sei-protocol__sei-chain__3243 | sei-protocol/sei-chain | 3,243 | defect | c5cad2b5a6f9831d3c3e449f0d98becc4a71fa5a | 4276dda6421c64122fe6be56b75d4d65756aa94c | fix: autobahn InitChain, GetValidators, and mempool TTL (CON-249) | ## Summary
Fixes autobahn `runExecute` so the docker cluster (`AUTOBAHN=true`) starts and produces blocks, and fixes a test hang in `TestGigaRouter_FinalizeBlocks`.
**Root cause 1 — double InitChain**: The CometBFT handshaker (`consensus/replay.go`) always calls `InitChain` when `appHeight==0`. The autobahn `runExecu... | diff --git a/app/app.go b/app/app.go
index e8df58f27c..ec26bc3ee8 100644
--- a/app/app.go
+++ b/app/app.go
@@ -2188,6 +2188,17 @@ func (app *App) LegacyAmino() *codec.LegacyAmino {
}
func (app *App) GetValidators() []abci.ValidatorUpdate {
+ // AUTOBAHN: After InitChain but before the first Commit, the committed
+ ... | 4 | 4 | 1 | [{"id": "G0", "claim": "The pull request as pushed appears to be a no-op, with no effect on behavior.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "unclear"}, {"id": "G1", "claim": "The TTL-purging disable should be moved into mempool.TestConfig() so purging is disabled by default for... | null |
sei-protocol__sei-chain__3257 | sei-protocol/sei-chain | 3,257 | defect | de50195e083f67c8a20d2f80f50382d00450f361 | f9dd9d6ecc8761ac65c824b680c25690e1d28fd1 | perf(app): reuse decoded transactions across ProcessProposalHandler hot path | ## Problem
In `ProcessProposalHandler`, transactions were decoded twice per block:
1. Inside `checkTotalBlockGas` (decoded from raw bytes, then discarded)
2. Again inside `ProcessBlock` → `DecodeTransactionsConcurrently`
## Changes
**Decode once, reuse everywhere:**
- `ProcessProposalHandler` now calls `Dec... | diff --git a/app/app.go b/app/app.go
index e8df58f27c..0bfd0f47c2 100644
--- a/app/app.go
+++ b/app/app.go
@@ -1208,13 +1208,12 @@ func (app *App) ProcessProposalHandler(ctx sdk.Context, req *abci.RequestProcess
// Start block processing timing (ends at FinalizeBlock)
app.StartBenchmarkBlockProcessing()
- // TODO... | 7 | 5 | 2 | [{"id": "G0", "claim": "The two tx-decode benchmarks should be dropped from the codebase (with the numbers reported in the PR description instead), since the Legacy one reconstructs a sequence nothing in prod calls after this lands and neither guards the reuse plumbing the PR introduces.", "category": "testing", "verdi... | null |
sei-protocol__sei-chain__3277 | sei-protocol/sei-chain | 3,277 | defect | a3bb4e8a93b29e611ae6e10191da76653013598b | 85388ae4f1d264d0f4bd7a83734e21d843d67f81 | Export ProposerPriorityHash metric for divergence monitoring | ## Summary
- Add two Prometheus gauges exported every 1024 heights to let operators detect ProposerPriority divergence between validators
- `tendermint_state_proposer_priority_hash`: first 6 bytes of the hash packed into a float64 (48 bits fits in the float64 mantissa; constant cardinality of one series per node)
- `te... | diff --git a/sei-tendermint/internal/state/execution.go b/sei-tendermint/internal/state/execution.go
index f73c0c341d..7d4ea1e1b3 100644
--- a/sei-tendermint/internal/state/execution.go
+++ b/sei-tendermint/internal/state/execution.go
@@ -20,6 +20,12 @@ import (
var logger = seilog.NewLogger("tendermint", "internal"... | 2 | 2 | 0 | [{"id": "G0", "claim": "The hand-rolled byte-packing loop in ApplyBlock should be replaced with the encoding/binary helper (binary.LittleEndian.Uint64) instead of manual shifting.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The exporter shoul... | null |
sei-protocol__sei-chain__3281 | sei-protocol/sei-chain | 3,281 | defect | 2900e9a20f7e07bd59e0dc0590a29f3913c45b2a | 0d50de2c44d771445a7d80f4c9161995996bb67e | fixes to mempool handling | * made handlePeerUpdates in mempool reactor run even if Broadcast = false, so that CheckTx failures are accounted properly.
* make autobahn producer wait on a AtomicRecv instead of TxsAvailable channel so that block production is not blocked by execution. | diff --git a/sei-tendermint/internal/autobahn/producer/state.go b/sei-tendermint/internal/autobahn/producer/state.go
index 649c079bd8..caf21b5416 100644
--- a/sei-tendermint/internal/autobahn/producer/state.go
+++ b/sei-tendermint/internal/autobahn/producer/state.go
@@ -49,16 +49,16 @@ func NewState(cfg *Config, txMemp... | 5 | 3 | 1 | [{"id": "G0", "claim": "The new behavior in processPeerUpdates (keeping peer management when broadcasting is disabled so that failedCheckTxCounts keep working) needs test coverage.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Reviewer asks whether mak... | null |
sei-protocol__sei-chain__3294 | sei-protocol/sei-chain | 3,294 | defect | b42de95c4c9d8e1d45454a6e61d58f0a7c40ae15 | 16c25bcccfdce1e5323df468eb524677b998311c | Parquet disable full range scan | ## Describe your changes and provide context
If the pebbledb tx index for the new parquet-based receiptdb is disabled, we will currently fallback to range scans over all the parquet files. This is a problem because it is a very expensive operation. This PR disallows the full range scan if the tx index is disabled.
... | diff --git a/sei-db/ledger_db/receipt/parquet_store.go b/sei-db/ledger_db/receipt/parquet_store.go
index 82147423a7..327e20402b 100644
--- a/sei-db/ledger_db/receipt/parquet_store.go
+++ b/sei-db/ledger_db/receipt/parquet_store.go
@@ -155,18 +155,23 @@ func (s *parquetReceiptStore) GetReceiptFromStore(ctx sdk.Context, ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new ErrTxIndexDisabled error surfaces internal scanner internals to end users instead of telling them the data was not found.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sei-protocol__sei-chain__428 | sei-protocol/sei-chain | 428 | defect | cd2f0241f612ad061d93f761c0bef658620a4d81 | 936dfd2e35a848873e63c4133e3247d2c29b3746 | Add ante handler to check if dex order/cancelleation provides enough fees + Add logics to only charge contract rent if user gas cannot cover | ## Describe your changes and provide context
Check if a tx that contains dex orders/cancellations provide enough fees during ante phase.
To keep things simple, we will apply a flat rate for order and cancellation respectively. The only accepted denom for such txs is `usei` for the time being. The gas price will als... | diff --git a/app/ante.go b/app/ante.go
index b8fc6e2f80..8529ea2315 100644
--- a/app/ante.go
+++ b/app/ante.go
@@ -95,6 +95,7 @@ func NewAnteHandlerAndDepGenerator(options HandlerOptions) (sdk.AnteHandler, sdk
sdk.CustomDepWrappedAnteDecorator(ante.NewIncrementSequenceDecorator(options.AccountKeeper), depdecorators.... | 3 | 3 | 0 | [{"id": "G0", "claim": "The ChargeRentForGas function should get an updated comment reflecting its new signature/behavior.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The AnteHandle function should have a comment explaining what it does.", "cat... | null |
sei-protocol__sei-chain__674 | sei-protocol/sei-chain | 674 | defect | b17fdda4332bafbf64d67d6437c0f92768e33168 | a861c58ce06904bc6dacde2fdfa9a35eb5408647 | Reject proposal if max block gas is exceeded | ## Describe your changes and provide context
Implementation for https://github.com/sei-protocol/sei-chain/pull/new/tony-chen-max-block-gas-check
We want honest validators (i.e. validators who do not use a maliciously modified binary) to reject block proposals whose transactions' GasWanted add up to something greate... | diff --git a/app/app.go b/app/app.go
index 4361f3812a..d77259f756 100644
--- a/app/app.go
+++ b/app/app.go
@@ -943,6 +943,13 @@ func (app *App) ClearOptimisticProcessingInfo() {
}
func (app *App) ProcessProposalHandler(ctx sdk.Context, req *abci.RequestProcessProposal) (*abci.ResponseProcessProposal, error) {
+ // ... | 1 | 1 | 0 | [{"id": "G0", "claim": "If there is a performance concern, the tx decoding in checkTotalBlockGasWanted could be made to run in parallel, with an atomic integer used to accumulate totalGasWanted.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sei-protocol__sei-chain__739 | sei-protocol/sei-chain | 739 | defect | 26088e271e1ac6518a06cf4b25392df5ec05e082 | 6b85fd59609989a267c4faf5dd7650be659be947 | Automatically unregister failed contracts in Dex EndBlock | ## Describe your changes and provide context
If a contract fails execution in dex EndBlock, we want to automatically unregister it so that it doesn't slow down the chain for an indefinite amount of time
## Testing performed to validate your change
unit test
| diff --git a/x/dex/keeper/contract.go b/x/dex/keeper/contract.go
index 7bf698c433..c4962c39bf 100644
--- a/x/dex/keeper/contract.go
+++ b/x/dex/keeper/contract.go
@@ -5,6 +5,7 @@ import (
"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
+ appparams "github.com/sei-protocol/sei-... | 1 | 1 | 1 | [{"id": "G0", "claim": "The automatic unregistration in EndBlock should not refund rents to the creator, per the offchain discussion.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sei-protocol__sei-chain__756 | sei-protocol/sei-chain | 756 | defect | 777b959fd220a00786d25d8401cea0b2755865a6 | 14b0d4380e1c7641c01fc6b026e481a43b59770a | Add param migration handler | ## Describe your changes and provide context
Params need a migration after adding them here: https://github.com/sei-protocol/sei-chain/pull/744
## Testing performed to validate your change
Checked out in test cluster and ran
| diff --git a/x/dex/migrations/v12_to_v13.go b/x/dex/migrations/v12_to_v13.go
new file mode 100644
index 0000000000..9bd5891f79
--- /dev/null
+++ b/x/dex/migrations/v12_to_v13.go
@@ -0,0 +1,15 @@
+package migrations
+
+import (
+ sdk "github.com/cosmos/cosmos-sdk/types"
+ "github.com/sei-protocol/sei-chain/x/dex/keeper"... | 1 | 1 | 1 | [{"id": "G0", "claim": "The migration test's require.Equal assertions compare uint64 param fields against untyped default constants, so the defaults need to be cast to uint64.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
seiyria__bootstrap-slider__296 | seiyria/bootstrap-slider | 296 | defect | 0d0a6374cf22f465aa3fc7a8d3b50071783de3f8 | 69f4002f416eec5d43bf7fc5e14a24367eadba3a | (feat) Add tick marks | Add tick marks to the slider. Two new configuration options have been
defined:
- ticks (Array): used to define the values of the ticks. Overwrites
min and max options.
- snap (int): Used to define snapping behaviour near tick marks.
| diff --git a/README.md b/README.md
index 4feb6c64..640ce1aa 100644
--- a/README.md
+++ b/README.md
@@ -125,6 +125,8 @@ Options can be passed either as a data (data-slider-foo) attribute, or as part o
| enabled | bool | true | whether or not the slider is initially enabled |
| formatter | function | returns the plain ... | 8 | 7 | 4 | [{"id": "G0", "claim": "The ticks feature should come with automated tests in a new spec file under /tests/spec/ (e.g. verifying the number of tick marks and their intervals).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The README description of the ... | null |
seiyria__bootstrap-slider__551 | seiyria/bootstrap-slider | 551 | defect | a740966d367c3e78dbb78af503d761e0538a1f13 | 8f66a29db31daea8aabb49211fe4446817300824 | Touch move conflicting with user trying to scroll fix | Fixing issue #428 where scrolling on mobile devices are locked in the slider.
Here's the fixed version in demo: http://codepen.io/jerrylow/pen/wGrBVo
Also the previous issue with video demonstration:
Codepen: http://codepen.io/anon/pen/LVKeQq
Video: http://jerrylow.com/demo/bootstrap-slider/bootstrap-slider-demo.mp4... | diff --git a/src/js/bootstrap-slider.js b/src/js/bootstrap-slider.js
index 08cdd105..760394c1 100644
--- a/src/js/bootstrap-slider.js
+++ b/src/js/bootstrap-slider.js
@@ -540,6 +540,9 @@
this.touchCapable = 'ontouchstart' in window || (window.DocumentTouch && document instanceof window.DocumentTouch);
+ this.... | 5 | 2 | 2 | [{"id": "G0", "claim": "The pull request fails the CI build with linting problems; fix the linting problems.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "unclear"}, {"id": "G1", "claim": "Add the necessary automated tests to the TouchEvents section of the test suite for the new touch... | null |
seiyria__bootstrap-slider__619 | seiyria/bootstrap-slider | 619 | defect | ca9501a5c08af2eaa86c725cf53904cac1897018 | 184092e0d32e0e0151e541773833f3af4b788a21 | Range Highlighter | Hi,
This change contains a new parameter the rangeHighlights, its an array, and with this property you can define ranges witch you want to highlight.
Example: https://jsfiddle.net/amaamp70/
I use this slider with a chart, and I show the selected range in chart, but with the new property I cloud indicate where the dat... | diff --git a/README.md b/README.md
index b60743da..6e41e82d 100644
--- a/README.md
+++ b/README.md
@@ -196,6 +196,7 @@ Options can be passed either as a data (data-slider-foo) attribute, or as part o
| scale | string | 'linear' | Set to 'logarithmic' to use a logarithmic scale. |
| focus | bool | false | Focus the ap... | 6 | 4 | 0 | [{"id": "G0", "claim": "Do not include the rebuilt dist/ artifacts in this pull request; keep dist changes out of the PR and ignore the dist directory via .gitignore.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add an example for the feature ... | null |
seiyria__bootstrap-slider__659 | seiyria/bootstrap-slider | 659 | defect | 21203fb7953655819153dc13b230672ce7ec574e | 1a67a2dbd7d5f6aa4b603c58c20745da067eeb24 | Removes 'none' classes after selection change | Fixes #658 | diff --git a/src/js/bootstrap-slider.js b/src/js/bootstrap-slider.js
index cfb53b36..6276aa02 100644
--- a/src/js/bootstrap-slider.js
+++ b/src/js/bootstrap-slider.js
@@ -689,6 +689,12 @@ const windowIsDefined = (typeof window === "object");
this._addClass(this.trackHigh, 'hide');
}
+ else if (this.opti... | 1 | 1 | 0 | [{"id": "G0", "claim": "Fix the indentation of the newly added 'after'/'before' selection else-if block in src/js/bootstrap-slider.js, which uses spaces instead of the file's tab indentation.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
seiyria__bootstrap-slider__679 | seiyria/bootstrap-slider | 679 | defect | 3ccc656002380fd81ad820a88e2be0dc02b0864a | 6dadef35c6b246cc12aeaf2abfe2080066ffaa71 | Feature : rtl mode (with options) | # Pull Requests
- [x] JSFiddle https://jsfiddle.net/tvf4gt4g/ + https://jsfiddle.net/t7ccex4a/1/
- [x] Github issue https://github.com/seiyria/bootstrap-slider/issues/678
- [x] documentation updates to README file
- [x] examples within [/tpl/index.tpl](https://github.com/seiyria/bootstrap-slider/blob/master/tpl/i... | diff --git a/src/js/bootstrap-slider.js b/src/js/bootstrap-slider.js
index bd4f657b..fb1756a5 100644
--- a/src/js/bootstrap-slider.js
+++ b/src/js/bootstrap-slider.js
@@ -13,7 +13,7 @@
*
* bootstrap-slider is released under the MIT License
* Copyright (c) 2016 Kyle Kemp, Rohit Kalkur, and contributors
- *
+ *
... | 4 | 3 | 1 | [{"id": "G0", "claim": "The pull request should pass the existing unit tests and add unit tests covering the new rtl option, in a new RtlOptionsSpec spec file.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The 'auto' handling of options.rtl (a computed... | null |
seiyria__bootstrap-slider__742 | seiyria/bootstrap-slider | 742 | defect | 7d6c0b1a6c7c95020e46cc5529da7e36551e29ca | 238af1467cb411b607789997d02ed079db4db69d | additional class support on 'rangeHighlights' option | Hi seiyria, would you please accept the pull request? Thank you.
<img width="825" alt="screenshot" src="https://cloud.githubusercontent.com/assets/2819095/25232353/9524a96c-260d-11e7-91f7-93e6b5540b26.png">
| diff --git a/README.md b/README.md
index b3cd004b..d1e19c16 100644
--- a/README.md
+++ b/README.md
@@ -198,7 +198,7 @@ Options can be passed either as a data (data-slider-foo) attribute, or as part o
| scale | string | 'linear' | Set to 'logarithmic' to use a logarithmic scale. |
| focus | bool | false | Focus the ap... | 4 | 4 | 1 | [{"id": "G0", "claim": "A unit test is needed to make sure the new 'rangeHighlights' custom class support works correctly before the PR can look good.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The compiled dist/ files should not be changed in this ... | null |
seiyria__bootstrap-slider__744 | seiyria/bootstrap-slider | 744 | defect | e55e01aedba8776af3b926053faa814f52eda1a8 | c902a9e2eb16678b1655071b4c08d686c2ff0f88 | lock_to_ticks | Pull Requests
=============
Please accompany all pull requests with the following (where appropriate):
- [ ] unit tests (we use [Jasmine 2.x.x](https://jasmine.github.io/2.2/introduction))
- [ ] JSFiddle (or an equivalent such as CodePen, Plunker, etc) or screenshot/GIF with new feature or bug-fix
- [ ] Link to ... | diff --git a/README.md b/README.md
index d1e19c16..2f917695 100644
--- a/README.md
+++ b/README.md
@@ -199,6 +199,7 @@ Options can be passed either as a data (data-slider-foo) attribute, or as part o
| focus | bool | false | Focus the appropriate slider handle after a value change. |
| labelledby | string,array | nul... | 8 | 8 | 2 | [{"id": "G0", "claim": "Remove the changes to the dist directory from this pull request, since those are compiled files that get generated when a new version is published.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The try/catch around the l... | null |
seiyria__bootstrap-slider__752 | seiyria/bootstrap-slider | 752 | defect | e55e01aedba8776af3b926053faa814f52eda1a8 | 9d9c0d1474dc2af4477d2dbfabc27e0c2963e686 | Add selection CSS classes to tick labels | Pull request for #751
--
Adds class `label-in-selection` if tick labels are in the selection range.
Adds class `label-is-selection` if tick label is selected, min or max.
--
_figure 1. example, selection tick labels are in darker font_
;
}
this.tickLabelContainer.style[styleMargin] = this.slider... | 2 | 2 | 1 | [{"id": "G0", "claim": "Unit tests should be added for the new tick-label class behavior, as simple as ensuring the rendered tick label elements carry the expected 'label-in-selection'/'label-is-selection' classes.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "... | null |
seiyria__bootstrap-slider__825 | seiyria/bootstrap-slider | 825 | defect | d81523e64bea59b6ab1e0123ad486f60c6d40743 | b20683095e5b02c66f94d9a347094f5a3b44ade6 | Fix the bug of _mouseup passing wrong value. | Make _mouseup get value from event and perform the same as _mousemove and _mousedown. #824 | diff --git a/src/js/bootstrap-slider.js b/src/js/bootstrap-slider.js
index afc5b4d2..1114811b 100644
--- a/src/js/bootstrap-slider.js
+++ b/src/js/bootstrap-slider.js
@@ -1630,10 +1630,15 @@ const windowIsDefined = (typeof window === "object");
}
}
},
- _mouseup: function() {
+ _mouseup: function(ev)... | 1 | 1 | 0 | [{"id": "G0", "claim": "A unit test should be written to cover this so it is not broken again.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
seiyria__bootstrap-slider__879 | seiyria/bootstrap-slider | 879 | defect | 59745c648eb9a4e937783c7177521219212112ab | bb050f42b15341d28f8796a7d79c91be8197f76e | Properly check if the slider values have changed | Fixes #878
I'll add unit tests later.
You can check the JSFiddle in the issue.
Pull Requests
=============
Please accompany all pull requests with the following (where appropriate):
- [ ] unit tests (we use [Jasmine 2.x.x](https://jasmine.github.io/2.2/introduction))
- [x] JSFiddle (or an equivalent suc... | diff --git a/src/js/bootstrap-slider.js b/src/js/bootstrap-slider.js
index 1292a445..7d407ec3 100644
--- a/src/js/bootstrap-slider.js
+++ b/src/js/bootstrap-slider.js
@@ -948,7 +948,16 @@ const windowIsDefined = (typeof window === "object");
if(triggerSlideEvent === true) {
this._trigger('slide', newValue);
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new keyboard test asserts synchronously even though the event-listener callbacks may not be invoked until the next tick of the event loop, so it should be written in an async manner using the `done` callback with the assertions inside the `slideStop` listener.", "category": "testing", "verdi... | null |
seiyria__bootstrap-slider__880 | seiyria/bootstrap-slider | 880 | defect | 59745c648eb9a4e937783c7177521219212112ab | ce8802425259fba4e0c94f1f383e164bb2023499 | Remove extra calls that are unnecessary | I wrote unit tests for checking if `_setDataVal()` works properly.
It's going to be a bit more difficult to write tests to check if removing the calls to `_layout()` haven't broken anything.
Pull Requests
=============
Please accompany all pull requests with the following (where appropriate):
- [ ] unit test... | diff --git a/src/js/bootstrap-slider.js b/src/js/bootstrap-slider.js
index 1292a445..dc93257f 100644
--- a/src/js/bootstrap-slider.js
+++ b/src/js/bootstrap-slider.js
@@ -1478,7 +1478,6 @@ const windowIsDefined = (typeof window === "object");
}
this._state.percentage[this._state.dragged] = percentage;
- ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new unit test should not call the underscore-prefixed private method `_setDataVal`, since invoking private methods from within a unit test breaks the abstraction and assumes implementation details.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
seiyria__bootstrap-slider__889 | seiyria/bootstrap-slider | 889 | defect | edabbcb9a05eedd6184d9b57088428fcdbd5ffdf | 0639cb5b92a89c5cb797c4c39b95745cb68d3fa5 | Fixes Issue #690 ticks should not overwrite min/max settings | Fixes #690
Pull Requests
=============
Please accompany all pull requests with the following (where appropriate):
- [x] unit tests (we use [Jasmine 2.x.x](https://jasmine.github.io/2.2/introduction))
- [ ] JSFiddle (or an equivalent such as CodePen, Plunker, etc) or screenshot/GIF with new feature or bug-fix
... | diff --git a/src/js/bootstrap-slider.js b/src/js/bootstrap-slider.js
index 194c3c2e..748168e9 100644
--- a/src/js/bootstrap-slider.js
+++ b/src/js/bootstrap-slider.js
@@ -372,6 +372,9 @@ const windowIsDefined = (typeof window === "object");
options = options ? options : {};
var optionTypes = Object.keys(this.de... | 2 | 2 | 1 | [{"id": "G0", "claim": "Refactor the min/max presence checks to use `hasOwnProperty` instead of the `in` keyword, because `in` traverses the prototype chain while `hasOwnProperty` checks the object only.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":... | null |
seiyria__bootstrap-slider__899 | seiyria/bootstrap-slider | 899 | defect | 642b40f80790b7c82e9ff149cdf07e40907ccd34 | 085a1b2a0b30d660443a23f3b5a98480e0bf49ef | Fix touch drag on mobile devices | This pull request addresses these issues:
Page scrolling: https://github.com/seiyria/bootstrap-slider/issues/639
Passive listeners: https://github.com/seiyria/bootstrap-slider/issues/842
Tooltips not displaying on touch-enabled mobile devices:
https://github.com/seiyria/bootstrap-slider/issues/513
https://gith... | diff --git a/dist/bootstrap-slider.js b/dist/bootstrap-slider.js
index ad757855..e2cc86ef 100644
--- a/dist/bootstrap-slider.js
+++ b/dist/bootstrap-slider.js
@@ -757,23 +757,9 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
this.touchstart = this._touchstart.bind(this);
this... | 2 | 2 | 0 | [{"id": "G0", "claim": "Remove the hand-applied changes to the dist build files (dist/bootstrap-slider.js and dist/bootstrap-slider.min.js) before finalizing the PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the console.log debug sta... | null |
seiyria__bootstrap-slider__900 | seiyria/bootstrap-slider | 900 | defect | 642b40f80790b7c82e9ff149cdf07e40907ccd34 | 8e80cf3c30df91312617b996ba9c1b53d99f4c2a | Bugfix mouseup trigger change | Pull Requests
=============
Please accompany all pull requests with the following (where appropriate):
- [x] unit tests (we use [Jasmine 2.x.x](https://jasmine.github.io/2.2/introduction))
- [ ] JSFiddle (or an equivalent such as CodePen, Plunker, etc) or screenshot/GIF with new feature or bug-fix
- [x] Link to ... | diff --git a/src/js/bootstrap-slider.js b/src/js/bootstrap-slider.js
index 2f514693..8cde8275 100644
--- a/src/js/bootstrap-slider.js
+++ b/src/js/bootstrap-slider.js
@@ -1749,8 +1749,7 @@ const windowIsDefined = (typeof window === "object");
}
var val = this._calculateValue(true);
- this._layout();
- ... | 2 | 2 | 1 | [{"id": "G0", "claim": "Remove the added test's second `_mouseup()` call (the reviewer says the test can be removed): after the first `_mouseup()` sets `this._state.dragged` to null, later `_mouseup()` calls store the new percentage under the `'null'` key instead of recalculating the value and triggering a `change` eve... | null |
seiyria__bootstrap-slider__905 | seiyria/bootstrap-slider | 905 | defect | dd5afbc0c10692a5d3768129cd8ac669a1029fa5 | ad13d077b8893cd521e36ecc4195b8f3b7c69a03 | Add new feature to persist the value after a refresh | Closes #901.
The user can pass an object with the property `useCurrentValue` set to
`true` so that the slider maintains its value after a call to `refresh`.
~~I will add an example as well.~~ Done.
Pull Requests
=============
Please accompany all pull requests with the following (where appropriate):
- [x... | diff --git a/README.md b/README.md
index 808a2371..497f144b 100644
--- a/README.md
+++ b/README.md
@@ -218,7 +218,7 @@ __NOTE:__ Optional parameters are italicized.
| isEnabled | --- |Returns true if enabled, false if disabled |
| setAttribute | attribute, value | Updates the slider's [attributes](#options) |
| getA... | 3 | 1 | 0 | [{"id": "G0", "claim": "refresh() should call getValue() inside the `useCurrentValue` if statement so it is only invoked when needed.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Declare currentValue with `const` instead of `var`, favoring ES6 block... | null |
sekigon-gonnoc__Pico-PIO-USB__164 | sekigon-gonnoc/Pico-PIO-USB | 164 | defect | 9c8df3083b62c0a678f3bd3d8a7e773932622d4b | c3d5da86732b740450a725396a59ac8f8aae5214 | Use microsecond for better timeout tracking | Also, sideset the USB pins when starting and resetting TX. The
output may be active. | diff --git a/src/pio_usb.c b/src/pio_usb.c
index 80e343a..ff84f7b 100644
--- a/src/pio_usb.c
+++ b/src/pio_usb.c
@@ -13,6 +13,7 @@
#include "hardware/dma.h"
#include "hardware/pio.h"
#include "hardware/pio_instructions.h"
+#include "hardware/structs/systick.h"
#include "hardware/sync.h"
#include "pico/bootrom.h"
... | 8 | 5 | 4 | [{"id": "G0", "claim": "The new systick-based timeouts assume an application has enabled and initialised systick, which not all applications do and which does not exist on the RP2350 RISC-V cores (and wraparound/underflow with differing reload values needs handling), so pio-usb should check/enable the SYST_CSR ENABLE b... | null |
sekrit-twc__zimg__81 | sekrit-twc/zimg | 81 | defect | dc68ac8557b34975c3662153d524b6fc05b99e00 | 94bf39f61e41d566934cd0298163d57fbc4202a0 | Additional color transfers | Hi,
I've added a few color transfer characteristics used in some old files.
Please let me know if you would like me to change anything. In particular I'd like to know your opinion on how I implemented the log transfers.
Thanks | diff --git a/src/testapp/table.cpp b/src/testapp/table.cpp
index 6700b91b..164d6435 100644
--- a/src/testapp/table.cpp
+++ b/src/testapp/table.cpp
@@ -76,10 +76,16 @@ const zimg::static_string_map<MatrixCoefficients, 10> g_matrix_table{
{ "ictcp", MatrixCoefficients::REC_2100_ICTCP },
};
-const zimg::static_s... | 9 | 4 | 4 | [{"id": "G0", "claim": "xvYCC support cannot be merged as-is: it produces linear RGB outside [0.0,1.0] that the LUT implementations do not handle correctly, its scene- vs display-referred handling needs deciding, and test data plus industry best-practice guidelines are required first.", "category": "correctness", "verd... | null |
seladb__PcapPlusPlus__1019 | seladb/PcapPlusPlus | 1,019 | defect | f6baff3c0eac1b66cc96861ed2be3e6a9c43f8b8 | 866df6e74486174c11852abd0e5618bc1ac04624 | Improve the test framework | This PR includes the following improvements to the test framework:
- Evaluate `actual` and `expected` only once at the beginning of the assertion macros instead of twice (once inside the `if` statement and then again when printing)
- Better printing of assertion failures
- Support `PTF_ASSERT_EQUAL` with enum classe... | diff --git a/Tests/Packet++Test/Tests/IcmpV6Tests.cpp b/Tests/Packet++Test/Tests/IcmpV6Tests.cpp
index 112d13a220..e5096d9d8e 100644
--- a/Tests/Packet++Test/Tests/IcmpV6Tests.cpp
+++ b/Tests/Packet++Test/Tests/IcmpV6Tests.cpp
@@ -36,7 +36,7 @@ PTF_TEST_CASE(IcmpV6ParsingTest)
pcpp::ICMPv6EchoLayer *echoRequestLayer ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The continuation line in the PTF_PRINT_ASSERTION macro is indented with spaces instead of tabs, so the alignment is off.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
seladb__PcapPlusPlus__1087 | seladb/PcapPlusPlus | 1,087 | defect | 7e965f4ef698308c929495a5cf983bed628058fa | b5d298b7752279f7e80b08549fee1a57c5f21c02 | Add detection of possible encrypted handshake message | Resolves #1085
To detect an encrypted handshake message, the following heuristic is used:
- handshake layer size is at least 16 bytes and
- the first 5 bytes of the handshake message are zeroes or the parsed message length is over 64K
- or the parsed message type makes no sense | diff --git a/Packet++/src/SSLHandshake.cpp b/Packet++/src/SSLHandshake.cpp
index b2fe7bd1cb..01ea2037ca 100644
--- a/Packet++/src/SSLHandshake.cpp
+++ b/Packet++/src/SSLHandshake.cpp
@@ -1228,6 +1228,19 @@ SSLHandshakeMessage* SSLHandshakeMessage::createHandshakeMessage(uint8_t* data,
return nullptr;
ssl_tls_han... | 6 | 5 | 3 | [{"id": "G0", "claim": "SSLMultipleRecordParsingTest fails because it treats the handshake message in the third record layer as a Hello Request although it is an encrypted handshake message.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "pre_existing"}, {"id": "G1", "claim": "A test sh... | null |
seladb__PcapPlusPlus__1103 | seladb/PcapPlusPlus | 1,103 | defect | 4e5b3e781d75395aaf3688cb542232540002225e | c599acec2e35c904364812ffa08fb0a831bc8701 | Add IPv4 networks | Addresses issue: https://github.com/seladb/PcapPlusPlus/issues/1009
Inspired by the Python implementation for subnets: https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv4Network | diff --git a/Common++/header/IpAddress.h b/Common++/header/IpAddress.h
index eb6ad80703..edf6713f4b 100644
--- a/Common++/header/IpAddress.h
+++ b/Common++/header/IpAddress.h
@@ -7,6 +7,17 @@
#include <algorithm>
#include <ostream>
+#ifndef PCPP_DEPRECATED
+#if defined(__GNUC__) || defined(__clang__)
+#define PCPP_... | 6 | 4 | 1 | [{"id": "G0", "claim": "The doc example for getLowestAddress()/getHighestAddress() contains a typo: \"10.10.l0.10\" should be \"10.10.10.10\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fallback for compilers without deprecation support sh... | null |
seladb__PcapPlusPlus__1106 | seladb/PcapPlusPlus | 1,106 | defect | 9b064a3c13acf0aea07a9ef0432f2a2280b2fa97 | d1a04658d71543aa3a3e6f48d9dde9da50270785 | Add IPv6 networks | Addresses issue: https://github.com/seladb/PcapPlusPlus/issues/1009
Inspired by the Python implementation for subnets: https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv6Network
This PR depends on https://github.com/seladb/PcapPlusPlus/pull/1103 (we'll merge the previous one first, then this one) | diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml
index 7c210913af..a7f5ff5e85 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -3,7 +3,7 @@ on:
push:
branches: ["master", "dev"]
pull_request:
- branches: ["dev"]
+ br... | 3 | 3 | 0 | [{"id": "G0", "claim": "The naming of the new matchSubnet overloads and their documentation for IPv6Network should use Network instead of Subnet.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The naming of the IPv6Network constructor parameter,... | null |
seladb__PcapPlusPlus__1112 | seladb/PcapPlusPlus | 1,112 | defect | f132cdab061626a3e583fa0ce52e249501e63dfb | 6e5580e6449e64c19131c7e1a6deeb2157469ca5 | Fixes handling of next header field of IPv6 layer for ICMPv6 msg | Currently the next header field in IPv6Layer.cpp is not set correctly for ICMPv6 when calling computeCalculateFields. This PR fixes this bug and adds a test for it. | diff --git a/Packet++/src/IPv6Layer.cpp b/Packet++/src/IPv6Layer.cpp
index 851bb78c71..ddf7da295a 100644
--- a/Packet++/src/IPv6Layer.cpp
+++ b/Packet++/src/IPv6Layer.cpp
@@ -291,6 +291,9 @@ void IPv6Layer::computeCalculateFields()
case ICMP:
nextHeader = PACKETPP_IPPROTO_ICMP;
break;
+ case ICMPv6:
+ nex... | 2 | 1 | 0 | [{"id": "G0", "claim": "In the added hop-limit line of IcmpV6CreationTest, spaces should be changed to a tab.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The trailing comment on the changed PTF_ASSERT_BUF_COMPARE line should probably be updat... | null |
seladb__PcapPlusPlus__1118 | seladb/PcapPlusPlus | 1,118 | defect | 1d29c00f441dc50650b500bb6b6fe72efce28990 | 047d2f642ad07d5f84c8c5252b6e608cd3a36042 | Add VRRP Layer | 1. Add VRRP Protocol; 2.Optimize pseudo header checksum. | diff --git a/Common++/header/Logger.h b/Common++/header/Logger.h
index b8a08399ab..66e7964a88 100644
--- a/Common++/header/Logger.h
+++ b/Common++/header/Logger.h
@@ -59,6 +59,7 @@ namespace pcpp
PacketLogModuleGtpLayer, ///< GtpLayer module (Packet++)
PacketLogModuleBgpLayer, ///< GtpLayer module (Packet++)
P... | 36 | 35 | 6 | [{"id": "G0", "claim": "Switch from spaces to tabs everywhere in the new code, following the project's tab convention.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the extra blank lines added between the items of the README's supported-... | null |
seladb__PcapPlusPlus__1273 | seladb/PcapPlusPlus | 1,273 | defect | dd9b3d8aa1b7403d08be7960bf01cc1be94575cd | 7002c2619ebf3baaea1c61e9e88a220fd818e5c3 | using std::function for callback | fixed #1261
using `std::fucntion` for `startCapture` related APIs.
`std::function` itself supports lamba and c-style functions, so no need to worry about backward compatibility. | diff --git a/Pcap++/header/PcapLiveDevice.h b/Pcap++/header/PcapLiveDevice.h
index f957dc450c..6808fff343 100644
--- a/Pcap++/header/PcapLiveDevice.h
+++ b/Pcap++/header/PcapLiveDevice.h
@@ -6,6 +6,7 @@
#include <vector>
#include <string.h>
#include <thread>
+#include <functional>
#include "IpAddress.h"
#include... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new static method packetArrivesBlockingModeStartCaptureUsingLambda is not used by any test, so it doesn't really run anywhere.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The doxygen documentation should be updated for the... | null |
seladb__PcapPlusPlus__1311 | seladb/PcapPlusPlus | 1,311 | defect | 7d806e8f1220fbf596a241d818bef9e58eec56fc | 169f0a202bf8e6caa9962cdd41761ce61a1cd4d5 | Consider SIP content type to determine if the next layer is SDP (fix #1309) | In issue https://github.com/seladb/PcapPlusPlus/issues/1309
Cause:
When sip content-type is message/sip, the function SipLayer::parseNextLayer() will parse next layer as sdp inappropriate.
Solution:
Check sip content-type before parse next layer as sdp. | diff --git a/Packet++/src/SipLayer.cpp b/Packet++/src/SipLayer.cpp
index 7ba815755d..e4d593d911 100644
--- a/Packet++/src/SipLayer.cpp
+++ b/Packet++/src/SipLayer.cpp
@@ -87,8 +87,15 @@ void SipLayer::parseNextLayer()
return;
size_t headerLen = getHeaderLen();
+ std::string contentType;
if (getContentLength() ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The opening brace of the new content-type if statement should be on its own line, as the project's code style uses.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Tests should be added for a SIP packet whose Content-Type ... | null |
seladb__PcapPlusPlus__1324 | seladb/PcapPlusPlus | 1,324 | defect | a93506c9e135dd522d1ef796e8709b6564a44ae5 | b916104d2fc77008397334f0ae342099abce2d22 | Refactor IPFilter to support IPv6 where possible. | The PR aims to address #1288, supporting IPv6 filtering where possible, and raise errors where it is not supported. | diff --git a/Pcap++/header/PcapFilter.h b/Pcap++/header/PcapFilter.h
index 256f4a582d..ff85b13b2a 100644
--- a/Pcap++/header/PcapFilter.h
+++ b/Pcap++/header/PcapFilter.h
@@ -243,11 +243,16 @@ namespace pcpp
class IPFilter : public IFilterWithDirection
{
private:
- std::string m_Address;
+ static constexpr int ... | 14 | 10 | 1 | [{"id": "G0", "claim": "The new constant names mix uppercase and lowercase (e.g. NO_Len_VALUE, NO_IPv4Mask_VALUE) and should be written the way other code in the codebase names things.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The empty-mas... | null |
seladb__PcapPlusPlus__1345 | seladb/PcapPlusPlus | 1,345 | defect | 5d217fff8a24d11a90d3cf088f85bd58d3b4125a | 49e908c39dee316e648779439231f55cc572abcb | Refactor IP Address | - `IpAddress` may throw during construction
- remove `isValid()` for `IpAddress` | diff --git a/Common++/header/IpAddress.h b/Common++/header/IpAddress.h
index 0cab16516b..6c06c265e5 100644
--- a/Common++/header/IpAddress.h
+++ b/Common++/header/IpAddress.h
@@ -6,17 +6,6 @@
#include <algorithm>
#include <ostream>
-#ifndef PCPP_DEPRECATED
-#if defined(__GNUC__) || defined(__clang__)
-#define PCPP_... | 22 | 21 | 2 | [{"id": "G0", "claim": "The IPv4Network/IPv6Network modifications should maybe be split off and done in a separate PR.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "IPAddress's string constructor should not call inet_pton itself; address validation should... | null |
seladb__PcapPlusPlus__1368 | seladb/PcapPlusPlus | 1,368 | defect | 0c75603db71a9bef02803e9b0893a5074fcbd5da | ffdad1f70657a85315531cbc3d5db92b3134411e | Improve nanosecond precision support for pcap | ~Instead of compile time constant definitions~ use `pcap_get_tstamp_precision()` to detect timestamp precision which introduced with libpcap 1.5.1
This should also fix #906
- [x] Update pcap open functions to control precision
- [x] Add arguments to specify desired precision
- [x] Keep backward compatibility s... | diff --git a/.gitignore b/.gitignore
index f5c209626c..463ce5df94 100644
--- a/.gitignore
+++ b/.gitignore
@@ -61,6 +61,7 @@ Tests/Pcap++Test/cUrl/curl_output.txt
*.VC.db
*.vcxproj.user
**/.vs
+CMakeSettings.json
#Visual Studio Projects
mk/vs2015/**
diff --git a/Pcap++/header/PcapFileDevice.h b/Pcap++/header/Pca... | 3 | 3 | 1 | [{"id": "G0", "claim": "Tests should be written for the nanosecond-precision reading and writing behaviour, including reading each file under both microsecond and nanosecond precision and checking the precision getter before and after open.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "in... | null |
seladb__PcapPlusPlus__1383 | seladb/PcapPlusPlus | 1,383 | defect | 10ca7ef55371a0afbe9df24d106207bc2f8a2203 | 1128200346d05eb91d7ff4847e1e4174a87c2ce9 | Replaced some C-style casts with Cpp style casts. | Part of #977.
Overview:
- Replaces C-style casts to `static_cast` where possible.
- Replaces C-style casts to `reinterpret_cast` where `static_cast` fails.
- Single instance of a C-style cast being replaced with `const_cast` as it was used to strip `const`-ness.
Added TODO comment as that is a potential acces... | diff --git a/Common++/header/IpAddress.h b/Common++/header/IpAddress.h
index 1a51d3ed50..ed473c8c7d 100644
--- a/Common++/header/IpAddress.h
+++ b/Common++/header/IpAddress.h
@@ -92,10 +92,10 @@ namespace pcpp
bool operator<(const IPv4Address& rhs) const
{
uint32_t intVal = toInt();
- std::reverse((uint8_t*... | 2 | 2 | 0 | [{"id": "G0", "claim": "Nit: for the `packetCount` declaration the PR added, move the `*` back next to `int`, writing `int*` instead of `int *`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Same pointer-style nit as M002 for the `packetCount` ... | null |
seladb__PcapPlusPlus__1403 | seladb/PcapPlusPlus | 1,403 | defect | ed6db693b97836c36302624fd271aa8749045f82 | 723a7d1b4050e03e3b2ab919da09a88d719d2944 | Add string representation for ASN.1 records | 1. Convert ASN.1 data to string
For example, this data:
```
30740201026050020103043b636e3d41646d696e6973747261746f722c636e3d55736572732c64633d636c6f7564736861726b2d612c64633d6578616d706c652c64633d636f6d800e636c6f7564736861726b31323321a01d301b0419312e332e362e312e342e312e34322e322e32372e382e352e31
```... | diff --git a/Packet++/header/Asn1Codec.h b/Packet++/header/Asn1Codec.h
index 719a75ffa1..5727e0925f 100644
--- a/Packet++/header/Asn1Codec.h
+++ b/Packet++/header/Asn1Codec.h
@@ -169,6 +169,11 @@ namespace pcpp
*/
size_t getTotalLength() const { return m_TotalLength; }
+ /**
+ * @return A string representat... | 8 | 3 | 0 | [{"id": "G0", "claim": "Use a hash table instead of a switch chain when converting tag classes and tag types to strings.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add the missing space after the comma in the std::accumulate call in Asn1Record::... | null |
seladb__PcapPlusPlus__148 | seladb/PcapPlusPlus | 148 | defect | e4a8d95d16815f56f30cb2be0f7f5dc0bdd5c90d | 98c0c64cd41ff8e456c24ecf92e3ec71b9914eb9 | Expose start and end times when reassembling a packet, move IPv6Exten… | Expose start and end times when reassembling a packet, move IPv6Extension::getNextHeader to public for better control over an instance (akin to pcpp::Layer::getNextLayer). | diff --git a/Packet++/header/IPv6Extensions.h b/Packet++/header/IPv6Extensions.h
index 62f3f9d68f..974448509f 100644
--- a/Packet++/header/IPv6Extensions.h
+++ b/Packet++/header/IPv6Extensions.h
@@ -59,6 +59,11 @@ namespace pcpp
*/
virtual ~IPv6Extension();
+ /**
+ * @return A pointer to the next header or ... | 2 | 2 | 2 | [{"id": "G0", "claim": "The pull request accidentally removed the #include <memory> line from Tests/Pcap++Test/main.cpp, and it should be restored.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "VS2015 builds complain about the initialization of the... | null |
seladb__PcapPlusPlus__1497 | seladb/PcapPlusPlus | 1,497 | defect | 44972d0a2b4afd9f36faeb2dc57105008d2dd29b | 50a7b26c20284f6025ed05d818c87d0d064d41df | Change PcapLiveDevice to store IP information as IPAddresses. | Fixes #1439 and #1499.
This IP changes the internal structure of `PcapLiveDevice` to hold the IP information in `IPAddress` classes instead of `pcap_addr` structs. This fixes the issues where IP information might be randomly overwritten. Additionally the clean separation between the device information and the device... | diff --git a/Pcap++/header/PcapLiveDevice.h b/Pcap++/header/PcapLiveDevice.h
index 4a2e66d262..e37e27d7cd 100644
--- a/Pcap++/header/PcapLiveDevice.h
+++ b/Pcap++/header/PcapLiveDevice.h
@@ -80,16 +80,30 @@ namespace pcpp
friend class PcapLiveDeviceList;
protected:
+ /// @struct DeviceInterfaceDetails
+ /// @b... | 2 | 1 | 0 | [{"id": "G0", "claim": "Very nit: the Doxygen documentation on the private/protected DeviceInterfaceDetails struct is unnecessary and could be dropped.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comment line '// every remote interface' abo... | null |
seladb__PcapPlusPlus__1500 | seladb/PcapPlusPlus | 1,500 | defect | 8841a3d294108edf965cda39e0fb53bb613176ce | 274b33691611efdc86aad7f0cea94de0fbb51189 | Add getter to fetch all IP addresses of a live device as IPAddress objects. | Stage one of #1499
- Deprecated `getAddresses()` in `PcapLiveDevice.h`, advising to use `getIPAddresses()` instead for better functionality.
- Implemented `getIPAddresses()` in `PcapLiveDevice.cpp`, which returns a vector of `IPAddress` objects for both IPv4 and IPv6 addresses.
- Updated `LiveDeviceTests.cpp` to i... | diff --git a/Pcap++/header/PcapLiveDevice.h b/Pcap++/header/PcapLiveDevice.h
index e4b88ba2f0..868af6a3a7 100644
--- a/Pcap++/header/PcapLiveDevice.h
+++ b/Pcap++/header/PcapLiveDevice.h
@@ -291,9 +291,16 @@ namespace pcpp
/**
* @return A vector containing all addresses defined for this interface, each in pcap... | 3 | 1 | 0 | [{"id": "G0", "claim": "The `results.push_back(IPv4Address(ipv4Addr->s_addr))` in getIPAddresses could be an `emplace_back` (e.g. `results.emplace_back(ipv4Addr->s_addr)`) to save a move construction, though the reviewer notes the current code is also fine.", "category": "performance", "verdict": "opposed", "priority":... | null |
seladb__PcapPlusPlus__1514 | seladb/PcapPlusPlus | 1,514 | defect | 123994c8254f84829a5e1957b46b76395b5cdbfd | aed5aa3e6ddc656f4e2d954b8a756427fa96b2fa | Fix precision issue on pcapng reader | Added test shows the problem of lost precision caused by using doubles to convert 64-bit timestamps to tv_sec and tv_nsec values. Next commit is the fix making code use integer arithmetic and timestamps now load correctly. | diff --git a/3rdParty/LightPcapNg/LightPcapNg/include/light_pcapng_ext.h b/3rdParty/LightPcapNg/LightPcapNg/include/light_pcapng_ext.h
index 6d8b2b1fa6..73c89a3941 100644
--- a/3rdParty/LightPcapNg/LightPcapNg/include/light_pcapng_ext.h
+++ b/3rdParty/LightPcapNg/LightPcapNg/include/light_pcapng_ext.h
@@ -71,7 +71,7 @@... | 3 | 2 | 1 | [{"id": "G0", "claim": "Add `// PCPP patch` comments around the code this pull request changes in LightPcapNg so the changes can later be contributed upstream.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add `// PCPP patch` and `// PCPP patch... | null |
seladb__PcapPlusPlus__1601 | seladb/PcapPlusPlus | 1,601 | defect | 462ccee7e98e0f001f33cd046f0d75c2125b8bf0 | 5d6c131b6a6d97872c7ebfd288958f38a61b5b2b | Add setters and tests for WireGuard protocol message fields | #### Reference
- #1554
- #1557
- [WireGuard Protocol](https://www.wireguard.com/papers/wireguard.pdf)
## Summary:
This PR introduces setter methods and corresponding tests for WireGuard message fields. These changes allow for easier modification of message attributes such as the reserved field, sender index, a... | diff --git a/Packet++/header/WireGuardLayer.h b/Packet++/header/WireGuardLayer.h
index 5d5a9dca24..acb0bf8c24 100644
--- a/Packet++/header/WireGuardLayer.h
+++ b/Packet++/header/WireGuardLayer.h
@@ -117,6 +117,11 @@ namespace pcpp
*/
uint32_t getReserved() const;
+ /**
+ * @param reserved The reserved field... | 1 | 1 | 0 | [{"id": "G0", "claim": "The WireGuard edit tests should reload the layer from the packet via getLayerOfType after calling the setters and before using the getters, in this test and in the other tests below.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.