Skip to content

Commit c3c1376

Browse files
chore(backport)!: extend TxStatus with more info and ExecTxRes to include signers (#2637)
## Description Cherry picks #2543 && #2593
1 parent 8ffad8e commit c3c1376

File tree

21 files changed

+559
-298
lines changed

21 files changed

+559
-298
lines changed

abci/example/kvstore/kvstore.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ func (app *Application) FinalizeBlock(_ context.Context, req *types.RequestFinal
257257
},
258258
},
259259
},
260+
Signers: []string{"kvstore-app"}, // set signers for the tx
260261
}
261262
app.state.Size++
262263
}

abci/types/types.pb.go

Lines changed: 276 additions & 221 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

consensus/replay_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ func newMockBlockStore(t *testing.T, config *cfg.Config, params types.ConsensusP
11821182
}
11831183
}
11841184

1185-
func (*mockBlockStore) SaveTxInfo(block *types.Block, txResponseCodes []uint32, logs []string) error {
1185+
func (*mockBlockStore) SaveTxInfo(block *types.Block, execTxRes []*abci.ExecTxResult) error {
11861186
return nil
11871187
}
11881188
func (bs *mockBlockStore) LoadTxInfo(hash []byte) *cmtstore.TxInfo { return &cmtstore.TxInfo{} }

consensus/wal_fuzz.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build gofuzz
2-
// +build gofuzz
32

43
package consensus
54

libs/sync/deadlock.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build deadlock
2-
// +build deadlock
32

43
package sync
54

libs/sync/sync.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !deadlock
2-
// +build !deadlock
32

43
package sync
54

p2p/conn/conn_go110.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build go1.10
2-
// +build go1.10
32

43
package conn
54

p2p/conn/conn_notgo110.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !go1.10
2-
// +build !go1.10
32

43
package conn
54

proto/tendermint/abci/types.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ message ExecTxResult {
452452
repeated Event events = 7
453453
[(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"]; // nondeterministic
454454
string codespace = 8;
455+
repeated string signers = 9;
455456
}
456457

457458
// TxResult contains results of executing the transaction.

proto/tendermint/store/types.pb.go

Lines changed: 199 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)