temoporarily changed DAG size for testing, fix TX loading, move some TX logic to Transaction_Init()
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
#include <block/transaction.h>
|
||||
#include <string.h>
|
||||
|
||||
void Transaction_Init(signed_transaction_t* tx) {
|
||||
if (!tx) { return; }
|
||||
// Zero out everything
|
||||
memset(tx, 0, sizeof(signed_transaction_t));
|
||||
|
||||
// NOTE: Other things might be added here
|
||||
}
|
||||
|
||||
void Transaction_CalculateHash(const signed_transaction_t* tx, uint8_t* outHash) {
|
||||
if (!tx || !outHash) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user