take care of some TODOs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -54,7 +54,6 @@ bool UnmarshalBurnTx(const CTransaction &burnTx, std::string &targetSymbol, uint
|
||||
|
||||
/*
|
||||
* Required by main
|
||||
* TODO: test
|
||||
*/
|
||||
CAmount GetCoinImportValue(const CTransaction &tx)
|
||||
{
|
||||
|
||||
@@ -248,4 +248,10 @@ TEST_F(TestCoinImport, testMomomCheckFail)
|
||||
EXPECT_EQ("momom-check-fail", state.GetRejectReason());
|
||||
}
|
||||
|
||||
|
||||
TEST_F(TestCoinImport, testGetCoinImportValue)
|
||||
{
|
||||
ASSERT_EQ(100, GetCoinImportValue(importTx));
|
||||
}
|
||||
|
||||
} /* namespace TestCoinImport */
|
||||
|
||||
Reference in New Issue
Block a user