Skip to content

Commit

Permalink
chore: add validator power field to Vote.ToString()
Browse files Browse the repository at this point in the history
  • Loading branch information
limebell authored and s2quake committed Jun 28, 2024
1 parent b3dab9b commit c87adb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Libplanet.Types/Consensus/Vote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ public override string ToString()
var dict = new Dictionary<string, object>
{
{ "validator_public_key", ValidatorPublicKey.ToString() },
{ "validator_power", ValidatorPower.ToString() },

Check warning on line 169 in src/Libplanet.Types/Consensus/Vote.cs

View workflow job for this annotation

GitHub Actions / check-build

Possible null reference argument for parameter 'value' in 'void Dictionary<string, object>.Add(string key, object value)'.

Check warning on line 169 in src/Libplanet.Types/Consensus/Vote.cs

View workflow job for this annotation

GitHub Actions / check-build

Possible null reference argument for parameter 'value' in 'void Dictionary<string, object>.Add(string key, object value)'.

Check warning on line 169 in src/Libplanet.Types/Consensus/Vote.cs

View workflow job for this annotation

GitHub Actions / docs

Possible null reference argument for parameter 'value' in 'void Dictionary<string, object>.Add(string key, object value)'.

Check warning on line 169 in src/Libplanet.Types/Consensus/Vote.cs

View workflow job for this annotation

GitHub Actions / docs

Possible null reference argument for parameter 'value' in 'void Dictionary<string, object>.Add(string key, object value)'.

Check warning on line 169 in src/Libplanet.Types/Consensus/Vote.cs

View workflow job for this annotation

GitHub Actions / Run Benchmark.Net benchmarks (macOS, self-hosted, ARM64)

Possible null reference argument for parameter 'value' in 'void Dictionary<string, object>.Add(string key, object value)'.

Check warning on line 169 in src/Libplanet.Types/Consensus/Vote.cs

View workflow job for this annotation

GitHub Actions / Run Benchmark.Net benchmarks (linux-8cores)

Possible null reference argument for parameter 'value' in 'void Dictionary<string, object>.Add(string key, object value)'.

Check warning on line 169 in src/Libplanet.Types/Consensus/Vote.cs

View workflow job for this annotation

GitHub Actions / Run Benchmark.Net benchmarks (windows-8cores)

Possible null reference argument for parameter 'value' in 'void Dictionary<string, object>.Add(string key, object value)'.
{ "vote_flag", Flag.ToString() },
{ "block_hash", BlockHash.ToString() },
{ "height", Height },
Expand Down

0 comments on commit c87adb1

Please sign in to comment.