zack-bitcoin / merkletrie Goto Github PK
View Code? Open in Web Editor NEWA merkel tree on the hard drive for a blockchain, written in erlang.
A merkel tree on the hard drive for a blockchain, written in erlang.
E.g. if trie is configured with key length of 1 byte, maximum allowed integer key shall be 255.
Best place to address this at the current state appears to be at the creation of a leaf. (Exclusion of 0 to be clarified out of scope for this ticket.)
After installing Erlang for Ubuntu 16.04 and running the start.sh script I get this:
sudo sh start.sh
[sudo] password
==> jiffy (get-deps)
==> encrypter (get-deps)
==> pink_hash (get-deps)
==> dump (get-deps)
==> MerkleTrie-master (get-deps)
==> jiffy (compile)
==> encrypter (compile)
==> pink_hash (compile)
==> dump (compile)
==> MerkleTrie-master (compile)
mkdir: cannot create directory βdataβ: File exists
Erlang/OTP 18 [erts-7.3] [source] [64-bit] [smp:8:8] [async-threads:10] [kernel-poll:false]
Eshell V7.3 (abort with ^G)
1>
=INFO REPORT==== 26-Jan-2018::22:29:16 ===
application: trie
exited: {{shutdown,
{failed_to_start_child,trie01_leaf,
{shutdown,
{failed_to_start_child,trie01_leaf_bits,
{undef,
[{hipe_bifs,bitarray,[1000000,false],[]},
{bits,init,1,
[{file,"src/bits.erl"},{line,9}]},
{gen_server,init_it,6,
[{file,"gen_server.erl"},{line,328}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},
{line,240}]}]}}}}},
{trie_app,start,[normal,[]]}}
type: temporary
OS: Ubuntu 16.04 xenial
Kernel: x86_64 Linux 4.13.0-31-generic
Uptime: 2d 8h 31m
Packages: 2686
Shell: bash 4.3.48
Resolution: 2560x1080
DE: Unity 7.4.0
WM: Compiz
WM Theme: Radiance
Radiance [GTK2]
, Radiance [GTK3]
Icon Theme: ubuntu-mono-light
Font: Ubuntu 11
CPU: AMD FX-8350 Eight-Core @ 4GHz
GPU: GeForce GTX 750 Ti
RAM: 11219MiB / 24003MiB
And I fully admit I don't know my way around Erlang CLI in Linux but am willing to learn.
erl_crash.txt
MerkleTrie/src$erl -run test_trie.erl
Erlang/OTP 18 [erts-7.3] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
{"init terminating in do_boot",{undef,[{'test_trie.erl',start,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
Crash dump is being written to: erl_crash.dump...done
init terminating in do_boot ()
Note I've got amoveo running:
/amoveo'
Attaching to /tmp/erl_pipes/ae_core_prod@strelkov-ThinkPad-X260/erlang.pipe.1 (^D to exit)
start keys
tx_pool- blockchain ready
starting secrets
start order book
Eshell V7.3 (abort with ^G)
(ae_core_prod@strelkov-ThinkPad-X260)1> [-7,159,89,106,253]
OS: Mint 18.1 serena
Kernel: x86_64 Linux 4.4.0-104-generic
Uptime: 16m
Packages: 3289
Shell: bash 4.3.48
Resolution: 1920x1080
DE: Cinnamon 3.2.7
WM: Muffin
WM Theme: Linux Mint (Mint-X)
Mint-X [GTK2]
, Mint-X [GTK3]
Icon Theme: Mint-X
Font: Noto Sans 9
CPU: Intel Core i5-6300U CPU @ 3GHz
GPU: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2)
RAM: 2393MiB / 7850MiB
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.