take care of some TODOs

This commit is contained in:
Scott Sadler
2018-05-28 21:02:34 -03:00
parent f84a323950
commit 0ffacf04dc
3 changed files with 11 additions and 2 deletions

View File

@@ -9,6 +9,7 @@
#include "main.h"
#include "chain.h"
#include "core_io.h"
#include "crosschain.h"
Eval* EVAL_TEST = 0;
@@ -165,7 +166,10 @@ bool Eval::GetNotarisationData(const uint256 notaryHash, NotarisationData &data)
*/
bool Eval::GetProofRoot(uint256 kmdNotarisationHash, uint256 &momom) const
{
return false; // TODO
std::pair<uint256,NotarisationData> out;
if (!GetNextBacknotarisation(kmdNotarisationHash, out)) return false;
momom = out.second.MoMoM;
return true;
}