'balance all' command

This commit is contained in:
2026-04-23 22:10:14 +02:00
parent d962194334
commit accdeebee8
4 changed files with 31 additions and 14 deletions

View File

@@ -9,6 +9,7 @@
#include <khash/khash.h>
#include <crypto/crypto.h>
#include <string.h>
#include <utils.h>
#include <uint256.h>
typedef struct {

16
include/utils.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef UTILS_H
#define UTILS_H
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
static inline void AddressToHexString(const uint8_t address[32], char out[65]) {
if (!address || !out) {
return;
}
to_hex(address, out);
}
#endif