Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13711475
D16876.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
590 B
Subscribers
None
D16876.diff
View Options
diff --git a/src/avalanche/test/stakecontendercache_tests.cpp b/src/avalanche/test/stakecontendercache_tests.cpp
--- a/src/avalanche/test/stakecontendercache_tests.cpp
+++ b/src/avalanche/test/stakecontendercache_tests.cpp
@@ -113,6 +113,10 @@
cache.invalidate(StakeContenderId(blockhash, proof->getId()));
CheckVoteStatus(cache, blockhash, proof, 1);
+
+ // Add the proof as a manual winner. It should always be accepted.
+ BOOST_CHECK(cache.addWinner(pindex, proof->getPayoutScript()));
+ CheckVoteStatus(cache, blockhash, proof, 0);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 26, 12:10 (2 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5573520
Default Alt Text
D16876.diff (590 B)
Attached To
D16876: [avalanche] Add test case of vote status for manually added stake winner
Event Timeline
Log In to Comment