|
|
@@ -15,14 +15,16 @@ type HistoryArbitrage struct {
|
|
|
ethereumApi *ethapi.PublicEthereumAPI
|
|
|
}
|
|
|
|
|
|
-func NewHistoryArbitrage(stack *node.Node, ctx *cli.Context, apiBackend ethapi.Backend) *HistoryArbitrage {
|
|
|
- return &HistoryArbitrage{
|
|
|
+func RegisterHistoryArbitrage(stack *node.Node, ctx *cli.Context, apiBackend ethapi.Backend) {
|
|
|
+ h := &HistoryArbitrage{
|
|
|
stack: stack,
|
|
|
ctx: ctx,
|
|
|
apiBackend: apiBackend,
|
|
|
blockChainApi: ethapi.NewPublicBlockChainAPI(apiBackend),
|
|
|
ethereumApi: ethapi.NewPublicEthereumAPI(apiBackend),
|
|
|
}
|
|
|
+
|
|
|
+ h.Register()
|
|
|
}
|
|
|
|
|
|
func (h HistoryArbitrage) Register() {
|