mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-06 13:26:23 +00:00
Expose and test EventSwitch in client.Local
This commit is contained in:
@@ -23,6 +23,7 @@ powerful control during testing, you probably want the "client/mock" package.
|
||||
*/
|
||||
type Local struct {
|
||||
node *nm.Node
|
||||
types.EventSwitch
|
||||
}
|
||||
|
||||
// NewLocal configures a client that calls the Node directly.
|
||||
@@ -34,7 +35,8 @@ type Local struct {
|
||||
func NewLocal(node *nm.Node) Local {
|
||||
node.ConfigureRPC()
|
||||
return Local{
|
||||
node: node,
|
||||
node: node,
|
||||
EventSwitch: node.EventSwitch(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user