guard cryptoconditions

This commit is contained in:
Scott Sadler
2018-02-18 20:40:24 -03:00
parent 28b946127b
commit 656fa68d13
3 changed files with 24 additions and 8 deletions

View File

@@ -1,8 +1,19 @@
#ifndef KOMODO_CRYPTOCONDITIONS_H
#define KOMODO_CRYPTOCONDITIONS_H
#include "cryptoconditions/include/cryptoconditions.h"
extern int32_t ASSETCHAINS_CC;
static bool IsCryptoConditionsEnabled() {
return 0 != ASSETCHAINS_CC;
}
/*
* Method stub for aux conditions. Unimplemented, thus fails if an aux condition is encountered.
*/
int komodoCCAux(CC *cond, void *context) {
static int komodoCCAux(CC *cond, void *context) {
return 0;
}
#endif /* KOMODO_CRYPTOCONDITIONS_H */