last_voting_time is not updated after vote #518

Closed
opened 2023-03-08 06:36:04 +00:00 by vampik · 10 comments
vampik commented 2023-03-08 06:36:04 +00:00 (Migrated from gitlab.com)

In master branch.

last_voting_time is not updated after vote (if votes doesn't changes)

In `master` branch. `last_voting_time` is not updated after vote (if votes doesn't changes)
vampik commented 2023-03-08 06:36:04 +00:00 (Migrated from gitlab.com)

assigned to @vampik

assigned to @vampik
vampik commented 2023-03-08 06:36:19 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
vampik commented 2023-03-08 08:56:34 +00:00 (Migrated from gitlab.com)

mentioned in commit c311995268d232eb64578752ad0e29a1ba8c4b64

mentioned in commit c311995268d232eb64578752ad0e29a1ba8c4b64
bobinson commented 2023-03-08 13:14:47 +00:00 (Migrated from gitlab.com)

mentioned in issue NEX#654

mentioned in issue NEX#654
vampik commented 2023-03-17 08:33:47 +00:00 (Migrated from gitlab.com)

mentioned in commit 8e0e20eb6f

mentioned in commit 8e0e20eb6fe59a4544b75b107ecb03e2409007ea
vampik commented 2023-03-17 08:35:46 +00:00 (Migrated from gitlab.com)

mentioned in merge request !217

mentioned in merge request !217
vampik commented 2023-03-17 08:37:37 +00:00 (Migrated from gitlab.com)

Verify that after this change if we vote (in different GPOS sub-period) for the SON we have already voted, last_voting_time is updated.

Verify that after this change if we vote (in different GPOS sub-period) for the SON we have already voted, `last_voting_time` is updated.
vampik commented 2023-03-17 09:31:25 +00:00 (Migrated from gitlab.com)

mentioned in commit 1586531e13

mentioned in commit 1586531e135ca5a358b652142307a2860a2a19ff
vampik commented 2023-03-20 04:49:03 +00:00 (Migrated from gitlab.com)

assigned to @wsalloum and @prandnum

assigned to @wsalloum and @prandnum
wsalloum commented 2023-03-20 15:28:13 +00:00 (Migrated from gitlab.com)
  • Vote for sonaccount07, after the first time:
root@622bd6230ad1:~/peerplays-network# curl -vvv --silent --data '{"jsonrpc": "2.0", "method": "get_gpos_info", "params": ["1.2.52"], "id": 1}' http://127.0.0.1:8090/rpc | jq
*   Trying 127.0.0.1:8090...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 8090 (#0)
> POST /rpc HTTP/1.1
> Host: 127.0.0.1:8090
> User-Agent: curl/7.68.0
> Accept: */*
> Content-Length: 76
> Content-Type: application/x-www-form-urlencoded
> 
} [76 bytes data]
* upload completely sent off: 76 out of 76 bytes
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Length: 262
< Server: WebSocket++/0.7.0
< 
{ [262 bytes data]
* Connection #0 to host 127.0.0.1 left intact
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "vesting_factor": "1.00000000000000000",
    "award": {
      "amount": 0,
      "asset_id": "1.3.0"
    },
    "total_amount": 240000000,
    "current_subperiod": 3,
    "last_voted_time": "2023-03-20T15:20:24",
    "allowed_withdraw_amount": 0,
    "account_vested_balance": 5000000
  }
}
  • Vote again to the same son sonaccount07
root@622bd6230ad1:~/peerplays-network# curl -vvv --silent --data '{"jsonrpc": "2.0", "method": "get_gpos_info", "params": ["1.2.53"], "id": 1}' http://127.0.0.1:8090/rpc | jq
*   Trying 127.0.0.1:8090...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 8090 (#0)
> POST /rpc HTTP/1.1
> Host: 127.0.0.1:8090
> User-Agent: curl/7.68.0
> Accept: */*
> Content-Length: 76
> Content-Type: application/x-www-form-urlencoded
> 
} [76 bytes data]
* upload completely sent off: 76 out of 76 bytes
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Length: 262
< Server: WebSocket++/0.7.0
< 
{ [262 bytes data]
* Connection #0 to host 127.0.0.1 left intact
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "vesting_factor": "1.00000000000000000",
    "award": {
      "amount": 0,
      "asset_id": "1.3.0"
    },
    "total_amount": 240000000,
    "current_subperiod": 3,
    "last_voted_time": "2023-03-20T15:23:09",
    "allowed_withdraw_amount": 0,
    "account_vested_balance": 5000000
  }
}

  • notice last_voted_time updated
- Vote for `sonaccount07`, after the first time: ``` root@622bd6230ad1:~/peerplays-network# curl -vvv --silent --data '{"jsonrpc": "2.0", "method": "get_gpos_info", "params": ["1.2.52"], "id": 1}' http://127.0.0.1:8090/rpc | jq * Trying 127.0.0.1:8090... * TCP_NODELAY set * Connected to 127.0.0.1 (127.0.0.1) port 8090 (#0) > POST /rpc HTTP/1.1 > Host: 127.0.0.1:8090 > User-Agent: curl/7.68.0 > Accept: */* > Content-Length: 76 > Content-Type: application/x-www-form-urlencoded > } [76 bytes data] * upload completely sent off: 76 out of 76 bytes * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Content-Length: 262 < Server: WebSocket++/0.7.0 < { [262 bytes data] * Connection #0 to host 127.0.0.1 left intact { "id": 1, "jsonrpc": "2.0", "result": { "vesting_factor": "1.00000000000000000", "award": { "amount": 0, "asset_id": "1.3.0" }, "total_amount": 240000000, "current_subperiod": 3, "last_voted_time": "2023-03-20T15:20:24", "allowed_withdraw_amount": 0, "account_vested_balance": 5000000 } } ``` - Vote again to the same son `sonaccount07` ``` root@622bd6230ad1:~/peerplays-network# curl -vvv --silent --data '{"jsonrpc": "2.0", "method": "get_gpos_info", "params": ["1.2.53"], "id": 1}' http://127.0.0.1:8090/rpc | jq * Trying 127.0.0.1:8090... * TCP_NODELAY set * Connected to 127.0.0.1 (127.0.0.1) port 8090 (#0) > POST /rpc HTTP/1.1 > Host: 127.0.0.1:8090 > User-Agent: curl/7.68.0 > Accept: */* > Content-Length: 76 > Content-Type: application/x-www-form-urlencoded > } [76 bytes data] * upload completely sent off: 76 out of 76 bytes * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Content-Length: 262 < Server: WebSocket++/0.7.0 < { [262 bytes data] * Connection #0 to host 127.0.0.1 left intact { "id": 1, "jsonrpc": "2.0", "result": { "vesting_factor": "1.00000000000000000", "award": { "amount": 0, "asset_id": "1.3.0" }, "total_amount": 240000000, "current_subperiod": 3, "last_voted_time": "2023-03-20T15:23:09", "allowed_withdraw_amount": 0, "account_vested_balance": 5000000 } } ``` - notice `last_voted_time` updated
wsalloum (Migrated from gitlab.com) closed this issue 2023-03-20 15:28:48 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#518
No description provided.