Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Add to project

on:
issues:
types: [opened]

jobs:
add-to-project:
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v1.0.2
with:
project-url: https://github.com/orgs/evstack/projects/7
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
10 changes: 10 additions & 0 deletions pkg/rpc/core/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ import (

// Subscribe for events via WebSocket.
// More: https://docs.cometbft.com/v0.37/rpc/#/Websocket/subscribe
//
// Param format compatibility (issue #17): CometBFT's JSON-RPC layer
// normalises incoming subscribe parameters before this function is called via
// jsonParamsToArgs in rpc/jsonrpc/server/http_json_handler.go. Both the legacy
// Tendermint map format ({"query": "tm.event='NewBlock'"}) and the array
// format (["tm.event='NewBlock'"]) are transparently converted to a plain
// string, so by the time Subscribe runs, query is always a plain Go string
// regardless of how the WS client sent it. This makes Subscribe compatible
// with both old Tendermint WS clients that used SubscribeArgs and new
// CometBFT clients.
func Subscribe(ctx *rpctypes.Context, query string) (*ctypes.ResultSubscribe, error) {
{
addr := ctx.RemoteAddr()
Expand Down
Loading
Loading