fix warnings
This commit is contained in:
@@ -47,7 +47,7 @@ extern khash_t(balance_sheet_map_m)* g_sheetMap;
|
||||
|
||||
void BalanceSheet_Init();
|
||||
int BalanceSheet_Insert(balance_sheet_entry_t entry);
|
||||
bool BalanceSheet_Lookup(uint8_t* address, balance_sheet_entry_t* out);
|
||||
bool BalanceSheet_Lookup(const uint8_t* address, balance_sheet_entry_t* out);
|
||||
bool BalanceSheet_SaveToFile(const char* outPath);
|
||||
bool BalanceSheet_LoadFromFile(const char* inPath);
|
||||
void BalanceSheet_Print();
|
||||
|
||||
+1
-1
@@ -133,7 +133,7 @@ static const size_t MAX_ORPHAN_BLOCKS = 512U;
|
||||
static const uint64_t IBD_TIP_AGE_BLOCKS = 20ULL;
|
||||
// Number of trailing blocks whose median timestamp is used for the age test above. Using a median
|
||||
// rather than the tip alone means a single miner cannot backdate one block to fake being in IBD.
|
||||
static const size_t MEDIAN_TIME_SPAN = 11U;
|
||||
#define MEDIAN_TIME_SPAN 11U
|
||||
|
||||
// Reward schedule acceleration: 1 means normal-speed progression.
|
||||
#define EMISSION_ACCELERATION_FACTOR 1ULL
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ static inline uint64_t get_current_time_ms(void) {
|
||||
return 0; // Handle error
|
||||
}
|
||||
// Convert seconds to milliseconds and add nanoseconds converted to milliseconds
|
||||
return (spec.tv_sec * 1000) + (spec.tv_nsec / 1000000);
|
||||
return ((uint64_t)spec.tv_sec * 1000ULL) + ((uint64_t)spec.tv_nsec / 1000000ULL);
|
||||
}
|
||||
|
||||
static inline void sleep_for_microseconds(uint64_t microseconds) {
|
||||
|
||||
Reference in New Issue
Block a user