-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wallet modules #353
Wallet modules #353
Conversation
@@ -258,17 +258,15 @@ func (this *QitmeerRobot) SubmitWork() { | |||
} | |||
} | |||
this.SubmitLock.Unlock() | |||
if err != ErrLimitWork { // limit wait block connect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there no need to add a frequency limit here?
return nil, err | ||
} | ||
return mtxHex, nil | ||
return api.txManager.CreateRawTransactionV2(inputs, aa, lockTime) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get the idea why we has to move the api
logic into the txManager
?
node/full.go
Outdated
@@ -146,6 +149,16 @@ func (qm *QitmeerFull) RegisterAccountService(cfg *config.Config) error { | |||
return nil | |||
} | |||
|
|||
func (qm *QitmeerFull) RegisterWalletService(cfg *config.Config, conf node.Config, _am *acct.AccountManager, _tm *tx.TxManager) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not introduce the depend on github.com/ethereum/go-ethereum/node
here by using the node.Config
you might have to refactor the wallet.New
API and it may be better to use the go-ethereum
internally.
No description provided.