Skip to content
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

v3.4.0 #795

Open
wants to merge 42 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
43f4f18
Merge pull request #789 from MinterTeam/dev
Apr 18, 2022
de768df
Merge pull request #792 from MinterTeam/dev
Apr 27, 2022
235a4a2
Merge pull request #794 from MinterTeam/dev
Apr 29, 2022
3baae6a
optimization bestTrade
May 2, 2022
ce1b9b8
update sync peers
May 7, 2022
85a796e
update sync peers
May 7, 2022
70b8d45
waitlists
May 11, 2022
49a8ae3
testnet fix
May 13, 2022
abb86e1
tx tags
May 16, 2022
46c5905
testnet
May 16, 2022
7bb33c5
version
May 16, 2022
5247d99
Subscribe
May 16, 2022
bb042fe
load_last_events cmd
May 20, 2022
38328ce
only-api-mode
May 20, 2022
43555c7
only-api-mode
May 20, 2022
0ff550e
only-api-mode
May 20, 2022
6b2cd56
fix deletedCandidates
May 21, 2022
8ff9f94
fix emission
May 21, 2022
469adce
fix emission
May 21, 2022
b18196b
update
May 21, 2022
42fd2a8
fix message sell MinimumValueToBuyReached error
May 24, 2022
ba0f324
wip: tests
May 30, 2022
eba7cac
wip: tests
May 31, 2022
d1ad22d
wip: tests
May 31, 2022
3c1f886
wip: test balance
Jun 2, 2022
e9b080f
wip: test validators
Jun 2, 2022
6f209da
add net message for edit archived tokens
Jun 2, 2022
e84ae58
fix x3 rewards and tests
Jun 2, 2022
73d225f
update version and CHANGELOG.md
Jun 2, 2022
32bccc2
update gateway
Jun 2, 2022
6dd2b5b
update old tests
Jun 3, 2022
1edb55f
update old tests
Jun 3, 2022
b648658
refactor for ChainTestnet and filter for invalidIDCandidate
Jun 3, 2022
9901403
backward compatibility
Jun 7, 2022
41fd221
remove account coins mutex
Jun 12, 2022
e23580e
remove account coins mutex
Jun 13, 2022
acd364e
fix rwmu
Jul 5, 2022
03b5fd5
fix rwmu
Jul 5, 2022
2f67886
add todo
Jul 12, 2022
85e3d66
fix rw mutex
Jul 23, 2022
8f4cbf3
add endpoint changeSwapPoolAmountsForPrice
Jul 23, 2022
4b1d792
fix Transaction endpoint response 404
Jul 23, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove account coins mutex
  • Loading branch information
klim0v committed Jun 12, 2022
commit 41fd2212bd3c7e713f749b8ca9b7cf53c32f93c9
8 changes: 2 additions & 6 deletions coreV2/state/accounts/accounts.go
Original file line number Diff line number Diff line change
@@ -382,12 +382,8 @@ func (a *Accounts) GetLockStakeUntilBlock(address types.Address) uint64 {
func (a *Accounts) GetBalances(address types.Address) []Balance {
account := a.getOrNew(address)

account.lock.RLock()
coins := account.coins
account.lock.RUnlock()

balances := make([]Balance, len(coins))
for key, id := range coins {
balances := make([]Balance, len(account.coins))
for key, id := range account.coins {
balances[key] = Balance{
Coin: *a.bus.Coins().GetCoin(id),
Value: a.GetBalance(address, id),