Skip to content

Commit

Permalink
fix pv array
Browse files Browse the repository at this point in the history
  • Loading branch information
techcoderx committed Jul 17, 2022
1 parent 3807140 commit 4abc26a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "avalon",
"version": "1.6.1",
"version": "1.6.2",
"description": "",
"scripts": {
"start": "node src/main.js",
Expand Down Expand Up @@ -55,7 +55,7 @@
"title": "Avalon API Documentation",
"description": "REST API documentation for Avalon blockchain",
"sampleUrl": "https://api.avalonblocks.com",
"version": "1.6.1"
"version": "1.6.2"
},
"devDependencies": {
"apidoc": "^0.50.2",
Expand Down
12 changes: 2 additions & 10 deletions src/chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -821,16 +821,8 @@ let chain = {
balance: 0,
bw: { v: 0, t: block.timestamp },
vt: { v: 0, t: block.timestamp }
}}, () =>
// disable @dtube leader
transaction.execute({
type: 18,
data: {
pub: ''
},
sender: 'dtube'
},block.timestamp,() => cb(null, { executed: false, distributed: 0, burned: burned }))
)
}}, () => cb(null, { executed: false, distributed: 0, burned: burned })
)
})
else
cb(null, { executed: false, distributed: 0, burned: 0 })
Expand Down
2 changes: 1 addition & 1 deletion src/p2p.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const version = '1.6.1'
const version = '1.6.2'
const default_port = 6001
const replay_interval = 1500
const discovery_interval = 60000
Expand Down
5 changes: 3 additions & 2 deletions src/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,9 @@ let transaction = {
let activeProposalVotes = []
if (account.voteLock)
for (let v in account.proposalVotes)
if (account.proposalVotes[v].end > ts && account.proposalVotes[v].amount - account.proposalVotes[v].bonus > newLock) {
newLock = account.proposalVotes[v].amount - account.proposalVotes[v].bonus
if (account.proposalVotes[v].end > ts) {
if (account.proposalVotes[v].amount - account.proposalVotes[v].bonus > newLock)
newLock = account.proposalVotes[v].amount - account.proposalVotes[v].bonus
activeProposalVotes.push(account.proposalVotes[v])
}

Expand Down

0 comments on commit 4abc26a

Please sign in to comment.