This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
tendermint
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
221
Wiki
Activity
Browse Source
SetRPCSwitch
pull/32/head
Ethan Buchman
10 years ago
committed by
Jae Kwon
parent
983b7f48e8
commit
168b1255ec
2 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
daemon/daemon.go
+1
-1
rpc/rpc.go
+ 1
- 0
daemon/daemon.go
View File
@ -149,6 +149,7 @@ func Daemon() {
rpc
.
SetRPCBlockStore
(
n
.
blockStore
)
rpc
.
SetRPCConsensusState
(
n
.
consensusState
)
rpc
.
SetRPCMempoolReactor
(
n
.
mempoolReactor
)
rpc
.
SetRPCSwitch
(
n
.
sw
)
rpc
.
StartHTTPServer
(
)
}
+ 1
- 1
rpc/rpc.go
View File
@ -24,6 +24,6 @@ func SetRPCMempoolReactor(mr *mempl.MempoolReactor) {
mempoolReactor
=
mr
}
func
SetSwitch
(
sw
*
p2p
.
Switch
)
{
func
Set
RPC
Switch
(
sw
*
p2p
.
Switch
)
{
p2pSwitch
=
sw
}
Write
Preview
Loading…
Cancel
Save