-
Notifications
You must be signed in to change notification settings - Fork 3
55 genesis txs #74
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
55 genesis txs #74
Conversation
ready for review 👍 |
sorry, put back to WIP, will need to update some tests. |
common/query/accountBalanceQuery.go
Outdated
@@ -19,6 +19,8 @@ type ( | |||
GetAccountBalanceByAccountID() string | |||
UpdateAccountBalance(fields, causedFields map[string]interface{}) (str string, args []interface{}) | |||
InsertAccountBalance(accountBalance *model.AccountBalance) (str string, args []interface{}) | |||
AddAccountBalance(balance int64, causedFields map[string]interface{}) (str string, args []interface{}) | |||
AddAccountUnconfirmedBalance(balance int64, causedFields map[string]interface{}) (str string, args []interface{}) |
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.
Don't we use SpendableBalance
?
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.
done
common/query/accountBalanceQuery.go
Outdated
q.TableName, balance, balance), []interface{}{causedFields["account_id"]} | ||
} | ||
|
||
func (q *AccountBalanceQuery) AddAccountUnconfirmedBalance(balance int64, causedFields map[string]interface{}) ( |
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.
don't we use SpendableBalance
?
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.
ah right, updating
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.
done
Description
Add genesis txs to genesis block.
Breakdown
GetTransactionType
not injecting complete depAccountBalanceQuery
balance not update.breakdown after merge from develop
if err != nil
logic flawReference Issue
Close #55
may affect #14
need #65 to be merged for some block fields and transaction save method.
Step to Test (optional)
go test ./..
go run main.go
account balance should be distributed according to genesis txs