Skip to content

Latest commit

 

History

History
117 lines (59 loc) · 2.21 KB

peculium_core_block_store.md

File metadata and controls

117 lines (59 loc) · 2.21 KB

Module peculium_core_block_store

Bitcoin Block Store Server. Copyright (c) 2013 Alexander Færøy

Authors: Alexander Færøy (ahf@0x90.dk).

Description

This module contains a gen_server server for storing and retrieving Bitcoin block's.

Data Types

Function Index

delete/1Delete block.
exists/1Check if a given block exists in the store.
get/1Get block.
put/2Insert block.
start_link/0Start Block Store Server.

Function Details

delete/1


delete(Hash::hash()) -> ok



Delete block.

exists/1


exists(Hash::hash()) -> boolean()



Check if a given block exists in the store.

get/1


get(Hash::hash()) -> {ok, block()} | {error, not_found}



Get block.

put/2


put(Hash::hash(), Block::block()) -> ok



Insert block.

start_link/0

start_link() -> any()

Start Block Store Server.