From 339656a35441a5d7d02282e6a5c6cdfeaf0571d6 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Thu, 1 May 2014 18:02:31 +0200 Subject: Move some records out of public header file. Improve db initialisation some. Wait for mnesia tables in init() and make the init-functions do some more. --- src/db.hrl | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/db.hrl (limited to 'src/db.hrl') diff --git a/src/db.hrl b/src/db.hrl new file mode 100644 index 0000000..16b9103 --- /dev/null +++ b/src/db.hrl @@ -0,0 +1,8 @@ +%% @doc What's stored in the database. +%% 'index' is the primary key, 'hash' is also indexed. +-record(plop, { + index :: non_neg_integer(), % Primary key. + hash :: binary(), % Hash over mtl. + mtl :: mtl(), % Merkle Tree Leaf, an #mtl{}. + spt_text :: binary() % Signed Plop Timestamp, an #spt_on_wire{}. + }). -- cgit v1.1