Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Parse vote commands' result #581

Merged
merged 11 commits into from
May 9, 2020

Conversation

ProDog
Copy link
Contributor

@ProDog ProDog commented May 8, 2020

Close #580.

  • Add deserialization for vote commands' result

@superboyiii
Copy link
Member

Tested: [PASS]

neo> get candidates
Invoking script with: '10c00c0d67657443616e646964617465730c14897720d8cd76f4f00abfa37c0edd889c208fde9b41627d5b52'
VM State: HALT
Gas Consumed: 1.0100739

Candidates:
0248a0770896556386734781bcc4c318e56a2feaf8b6f3415496657bac6a1a8619    9090908
0259cd9e2b5536899c1056b532bcd1258fe2d6468040d130923465e9085836de7b    4545454
0277bf331ee0598b626d6a011101e1a6468d1a58e199a92b287d79563a5316cce9    4545454
027db39e01fb7da8676a3988e5829ad2f898fab00f245bb358ce8bd92d8e92063b    4545454
02bb90a18d5de1ee699f04df2d98ff7abb449adb1a6cf7f28b43c05cdd9759e41b    9090908
03042d88637dba6755a07e57e4533ef444bb1f0cfcc05410456e7917f15ab5d045    9090908
03ddd0fd19255731658e884905ecaf8226c6ef817e20f9b290cb90aa607b311a1a    9090908
neo> get committee
Invoking script with: '10c00c0c676574436f6d6d69747465650c14897720d8cd76f4f00abfa37c0edd889c208fde9b41627d5b52'
VM State: HALT
Gas Consumed: 1.0100739

Committee:
03042d88637dba6755a07e57e4533ef444bb1f0cfcc05410456e7917f15ab5d045
0248a0770896556386734781bcc4c318e56a2feaf8b6f3415496657bac6a1a8619
0259cd9e2b5536899c1056b532bcd1258fe2d6468040d130923465e9085836de7b
0277bf331ee0598b626d6a011101e1a6468d1a58e199a92b287d79563a5316cce9
027db39e01fb7da8676a3988e5829ad2f898fab00f245bb358ce8bd92d8e92063b
02bb90a18d5de1ee699f04df2d98ff7abb449adb1a6cf7f28b43c05cdd9759e41b
03ddd0fd19255731658e884905ecaf8226c6ef817e20f9b290cb90aa607b311a1a
neo> get next validators
Invoking script with: '10c00c166765744e657874426c6f636b56616c696461746f72730c14897720d8cd76f4f00abfa37c0edd889c208fde9b41627d5b52'
VM State: HALT
Gas Consumed: 1.0100739

Next validators:
03042d88637dba6755a07e57e4533ef444bb1f0cfcc05410456e7917f15ab5d045
0248a0770896556386734781bcc4c318e56a2feaf8b6f3415496657bac6a1a8619
02bb90a18d5de1ee699f04df2d98ff7abb449adb1a6cf7f28b43c05cdd9759e41b
03ddd0fd19255731658e884905ecaf8226c6ef817e20f9b290cb90aa607b311a1a
neo> list key
03b9a57891c390fa5407fdbbfd7a8043deefb6d6fb2e8c65f00ee9a52b4745f27d
neo> list asset
NfLQq7ncqY8YoYBFpRu7sCdeFY86s8nCX3
NEO: 10000000
GAS: 20000000

----------------------------------------------------
Total:   NEO: 10000000    GAS: 20000000

NEO hash: 0x9bde8f209c88dd0e7ca3bf0af0f476cdd8207789
GAS hash: 0x8c23f196d8a1bfd103a9dcb1f9ccf0c611377d3b
neo> register candidate NfLQq7ncqY8YoYBFpRu7sCdeFY86s8nCX3 03b9a57891c390fa5407fdbbfd7a8043deefb6d6fb2e8c65f00ee9a52b4745f27d
Invoking script with: '0c2103b9a57891c390fa5407fdbbfd7a8043deefb6d6fb2e8c65f00ee9a52b4745f27d11c00c11726567697374657243616e6469646174650c14897720d8cd76f4f00abfa37c0edd889c208fde9b41627d5b52'
VM State: HALT
Gas Consumed: 0.0600757
Evaluation Stack: [{"type":"Boolean","value":true}]

relay tx(no|yes): yes
Signed and relayed transaction with hash=0xdddf37a7eeaee4a18120fcbcc390fd4e6909252e4fe65b793865148f2749978e
neo> send neo NSnMMU4r6V5z27EPVrtKEvKgxH7NHW2Zag 7000000
password: *
TXID: 0x59977410f72a27a8b2425da6565c18a5684868e95309f37904c354ab917643fe
neo> vote NSnMMU4r6V5z27EPVrtKEvKgxH7NHW2Zag 03b9a57891c390fa5407fdbbfd7a8043deefb6d6fb2e8c65f00ee9a52b4745f27d
error: The address 0x3f0ae1840b47807b0eb9d564ddb3833ba70e584b was not found in the wallet
neo> vote NfLQq7ncqY8YoYBFpRu7sCdeFY86s8nCX3 03b9a57891c390fa5407fdbbfd7a8043deefb6d6fb2e8c65f00ee9a52b4745f27d
Invoking script with: '0c2103b9a57891c390fa5407fdbbfd7a8043deefb6d6fb2e8c65f00ee9a52b4745f27d0c14d509c79724cb8fa96d44115e4decd8dfe9b10caa12c00c04766f74650c14897720d8cd76f4f00abfa37c0edd889c208fde9b41627d5b52'
VM State: HALT
Gas Consumed: 5.0100775
Evaluation Stack: [{"type":"Boolean","value":true}]

relay tx(no|yes): yes
Signed and relayed transaction with hash=0xa0c7c5bfcccf3f258dba8a079a085b9a813e519395a58d2315f45d6359cdd973
neo> get candidates
Invoking script with: '10c00c0d67657443616e646964617465730c14897720d8cd76f4f00abfa37c0edd889c208fde9b41627d5b52'
VM State: HALT
Gas Consumed: 1.0100739

Candidates:
0248a0770896556386734781bcc4c318e56a2feaf8b6f3415496657bac6a1a8619    9090908
0259cd9e2b5536899c1056b532bcd1258fe2d6468040d130923465e9085836de7b    4545454
0277bf331ee0598b626d6a011101e1a6468d1a58e199a92b287d79563a5316cce9    4545454
027db39e01fb7da8676a3988e5829ad2f898fab00f245bb358ce8bd92d8e92063b    4545454
02bb90a18d5de1ee699f04df2d98ff7abb449adb1a6cf7f28b43c05cdd9759e41b    16090908
03042d88637dba6755a07e57e4533ef444bb1f0cfcc05410456e7917f15ab5d045    9090908
03b9a57891c390fa5407fdbbfd7a8043deefb6d6fb2e8c65f00ee9a52b4745f27d    3000000
03ddd0fd19255731658e884905ecaf8226c6ef817e20f9b290cb90aa607b311a1a    9090908
neo> get committee
Invoking script with: '10c00c0c676574436f6d6d69747465650c14897720d8cd76f4f00abfa37c0edd889c208fde9b41627d5b52'
VM State: HALT
Gas Consumed: 1.0100739

Committee:
03042d88637dba6755a07e57e4533ef444bb1f0cfcc05410456e7917f15ab5d045
0248a0770896556386734781bcc4c318e56a2feaf8b6f3415496657bac6a1a8619
0259cd9e2b5536899c1056b532bcd1258fe2d6468040d130923465e9085836de7b
0277bf331ee0598b626d6a011101e1a6468d1a58e199a92b287d79563a5316cce9
027db39e01fb7da8676a3988e5829ad2f898fab00f245bb358ce8bd92d8e92063b
02bb90a18d5de1ee699f04df2d98ff7abb449adb1a6cf7f28b43c05cdd9759e41b
03ddd0fd19255731658e884905ecaf8226c6ef817e20f9b290cb90aa607b311a1a
neo> get next validators
Invoking script with: '10c00c166765744e657874426c6f636b56616c696461746f72730c14897720d8cd76f4f00abfa37c0edd889c208fde9b41627d5b52'
VM State: HALT
Gas Consumed: 1.0100739

Next validators:
03042d88637dba6755a07e57e4533ef444bb1f0cfcc05410456e7917f15ab5d045
0248a0770896556386734781bcc4c318e56a2feaf8b6f3415496657bac6a1a8619
02bb90a18d5de1ee699f04df2d98ff7abb449adb1a6cf7f28b43c05cdd9759e41b
03ddd0fd19255731658e884905ecaf8226c6ef817e20f9b290cb90aa607b311a1a
neo>

@superboyiii superboyiii merged commit 605fccb into neo-project:master May 9, 2020
@ProDog ProDog deleted the update-vote-commands branch May 11, 2020 02:22
ProDog added a commit to ProDog/neo-node that referenced this pull request May 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Serialize the result of vote commands
3 participants