Code Monkey home page Code Monkey logo

xmr's Introduction

Xmr Monero node

Xmr is an implementation of the Monero cryptocurrency. It aims to be a full Monero node with wallet functionality.

This is a work in progress that is not yet functional

Building Xmr

Xmr is built with the Cargo package manager. First, ensure you have the latest stable Rust version (it hasn't been tested with older Rust versions). Then run this in the xmr repository folder:

cargo build

This will create the dxmr binary in the target/debug directory.

To build the binary optimized for release:

cargo build --release

License

Some parts of the code are GPLv3 due to them being base on the parity-bitcoin code. However the code that isn't related to the parity-bitcoin code is licensed under the MIT or Apache 2.0 at your option.

xmr's People

Contributors

ged0 avatar jeandudey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

xmr's Issues

Review portable storage implementation.

Checklist:

  • Do this implementation binary output matches the one in Monero's epee?
  • Add test's to verify this it's compatible with Monero.
  • Also, do this implementation follow the same semantics found in Monero (how portable storage
    sections are created)?
  • Do types have good names that reason about theri meaning?
    • WTF is ToUnderlying?, explore an approach using std library.
  • Is it using failure optimally?
  • Review Bytes and BufMut usage.
  • Test the parser never crashes.

Add CI

Add Travis CI and possibly Appveyor.

Add a README.md

I don't have any plans to write it but it must look like cretonne's README.md, it's clean, simple and expressive.

Add LICENSE

It might be MIT/Apache 2.0 or something like that, I don't care right now.

Use the `tower` crate

Currently I have a yet-another-request-response logic in my code that doesn't give anything to the humanity, so better I should use tower to don't waste resources. It's currently in development, alpha software that probably can eat your kid but I don't care right now because nothing works as I would like.

Can't build xmr on x86-64

Looking good, I am all set up with rust and cargo, but upon cargo install this is the output:

user@userd:~/xmr$ git clone https://github.com/xmr-rs/xmr
user@userd:~/xmr$cd xmr
user@userd:~/xmr$ cargo install
  Installing xmr v0.1.0 (file:///home/user/xmr)
 Downloading clap v2.31.2
 Downloading env_logger v0.5.6
 Downloading serde v1.0.34
 Downloading rustc-demangle v0.1.7
 Downloading iovec v0.1.2
 Downloading num v0.1.42
 Downloading num-complex v0.1.43
 Downloading num-iter v0.1.35
 Downloading num-integer v0.1.36
 Downloading num-rational v0.1.42
 Downloading num-bigint v0.1.43
 Downloading num-traits v0.2.2
 Downloading libc v0.2.39
 Downloading cc v1.0.9
 Downloading parking_lot_core v0.2.13
 Downloading tokio-core v0.1.16
 Downloading futures v0.1.19
 Downloading serde_derive v1.0.34
 Downloading tokio-io v0.1.6
 Downloading tokio v0.1.4
 Downloading tokio-reactor v0.1.1
 Downloading tokio-executor v0.1.1
 Downloading scoped-tls v0.1.1
 Downloading mio v0.6.14
 Downloading tokio-threadpool v0.1.1
 Downloading tokio-udp v0.1.0
 Downloading tokio-tcp v0.1.0
 Downloading crossbeam-deque v0.3.0
 Downloading crossbeam-epoch v0.4.1
 Downloading crossbeam-utils v0.2.2
 Downloading crossbeam-utils v0.3.2
 Downloading memoffset v0.2.1
 Downloading scopeguard v0.3.3
 Downloading arrayvec v0.4.7
 Downloading nodrop v0.1.12
 Downloading net2 v0.2.32
 Downloading linked-hash-map v0.5.1
 Downloading serde_derive_internals v0.22.0
 Downloading syn v0.12.14
 Downloading quote v0.4.2
 Downloading proc-macro2 v0.2.3
 Downloading unicode-xid v0.1.0
 Downloading atty v0.2.8
 Downloading strsim v0.7.0
 Downloading termcolor v0.3.5
 Downloading regex v0.2.10
 Downloading humantime v1.1.1
 Downloading regex-syntax v0.5.3
 Downloading ucd-util v0.1.1
 Downloading quick-error v1.2.1
 Downloading ansi_term v0.11.0
   Compiling num-traits v0.2.2
   Compiling regex v0.2.10
   Compiling scoped-tls v0.1.1
   Compiling rustc-demangle v0.1.7
   Compiling nodrop v0.1.12
   Compiling ucd-util v0.1.1
   Compiling quick-error v1.2.1
   Compiling futures v0.1.19
   Compiling unicode-xid v0.1.0
   Compiling termcolor v0.3.5
   Compiling cc v1.0.9
   Compiling scopeguard v0.3.3
   Compiling serde v1.0.34
   Compiling linked-hash-map v0.5.1
   Compiling strsim v0.7.0
   Compiling memoffset v0.2.1
   Compiling libc v0.2.39
   Compiling ansi_term v0.11.0
   Compiling arrayvec v0.4.7
   Compiling humantime v1.1.1
   Compiling proc-macro2 v0.2.3
   Compiling regex-syntax v0.5.3
   Compiling num-complex v0.1.43
   Compiling num-integer v0.1.36
   Compiling crossbeam-utils v0.2.2
   Compiling crossbeam-utils v0.3.2
   Compiling net2 v0.2.32
   Compiling atty v0.2.8
   Compiling memmap v0.6.2
   Compiling iovec v0.1.2
   Compiling fs2 v0.4.3
   Compiling rand v0.4.2
   Compiling memchr v2.0.1
   Compiling num_cpus v1.8.0
   Compiling tokio-executor v0.1.1
   Compiling num-iter v0.1.35
   Compiling crossbeam-epoch v0.4.1
   Compiling clap v2.31.2
   Compiling bytes v0.4.6
   Compiling xmr-crypto v0.1.0 (file:///home/user/xmr/crypto)
   Compiling backtrace-sys v0.1.16
   Compiling mio v0.6.14
   Compiling aho-corasick v0.6.4
   Compiling synstructure v0.6.1
   Compiling futures-cpupool v0.1.8
   Compiling num-bigint v0.1.43
   Compiling sanakirja v0.8.16
   Compiling parking_lot_core v0.2.13
   Compiling quote v0.4.2
   Compiling crossbeam-deque v0.3.0
   Compiling tokio-io v0.1.6
   Compiling parking_lot v0.4.8
   Compiling failure_derive v0.1.1
   Compiling num-rational v0.1.42
error: failed to run custom build command for `xmr-crypto v0.1.0 (file:///home/user/xmr/crypto)`
process didn't exit successfully: `/home/user/xmr/target/release/build/xmr-crypto-54a379aac8c23f9b/build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/aesb.o" "-c" "sys/aesb.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/blake256.o" "-c" "sys/blake256.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/crypto-ops-data.o" "-c" "sys/crypto-ops-data.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/crypto-ops.o" "-c" "sys/crypto-ops.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/groestl.o" "-c" "sys/groestl.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/hash-extra-blake.o" "-c" "sys/hash-extra-blake.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/hash-extra-groestl.o" "-c" "sys/hash-extra-groestl.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/hash-extra-jh.o" "-c" "sys/hash-extra-jh.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/hash-extra-skein.o" "-c" "sys/hash-extra-skein.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/hash.o" "-c" "sys/hash.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/jh.o" "-c" "sys/jh.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/keccak.o" "-c" "sys/keccak.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/oaes_lib.o" "-c" "sys/oaes_lib.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/random.o" "-c" "sys/random.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/skein.o" "-c" "sys/skein.c"
cargo:warning=sys/skein.c: In function ‘Skein_256_Final’:
cargo:warning=sys/skein.c:1360:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
cargo:warning=         ((u64b_t *)ctx->b)[0]= Skein_Swap64((u64b_t) i); /* build the counter block */
cargo:warning=         ^
cargo:warning=sys/skein.c: In function ‘Skein_512_Final’:
cargo:warning=sys/skein.c:1560:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
cargo:warning=         ((u64b_t *)ctx->b)[0]= Skein_Swap64((u64b_t) i); /* build the counter block */
cargo:warning=         ^
cargo:warning=sys/skein.c: In function ‘Skein1024_Final’:
cargo:warning=sys/skein.c:1758:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
cargo:warning=         ((u64b_t *)ctx->b)[0]= Skein_Swap64((u64b_t) i); /* build the counter block */
cargo:warning=         ^
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/slow-hash.o" "-c" "sys/slow-hash.c"
cargo:warning=sys/slow-hash.c: In function ‘cn_slow_hash’:
cargo:warning=sys/slow-hash.c:576:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
cargo:warning=     U64(a)[0] = U64(&state.k[0])[0] ^ U64(&state.k[32])[0];
cargo:warning=     ^
cargo:warning=sys/slow-hash.c:576:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
cargo:warning=sys/slow-hash.c:578:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
cargo:warning=     U64(b)[0] = U64(&state.k[16])[0] ^ U64(&state.k[48])[0];
cargo:warning=     ^
cargo:warning=sys/slow-hash.c:578:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
cargo:warning=In file included from sys/slow-hash.c:73:0:
cargo:warning=sys/slow-hash.c: In function ‘aes_256_assist2’:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/5/include/wmmintrin.h:87:1: error: inlining failed in call to always_inline ‘_mm_aeskeygenassist_si128’: target specific option mismatch
cargo:warning= _mm_aeskeygenassist_si128 (__m128i __X, const int __C)
cargo:warning= ^
cargo:warning=sys/slow-hash.c:239:8: error: called from here
cargo:warning=     t4 = _mm_aeskeygenassist_si128(*t1, 0x00);
cargo:warning=        ^
exit code: 1

--- stderr
thread 'main' panicked at '

Internal error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "sys" "-Wall" "-Wextra" "-o" "/home/user/xmr/target/release/build/xmr-crypto-f021d8ba2443549e/out/sys/slow-hash.o" "-c" "sys/slow-hash.c" with args "cc" did not execute successfully (status code exit code: 1).

', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.9/src/lib.rs:2070:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: failed to compile `xmr v0.1.0 (file:///home/user/xmr)`, intermediate artifacts can be found at `/home/user/xmr/target`

Have you encountered the above? Any assistance would be great, looking forward to testing and contributing. If I get it working I will pull request.

Update `xmr-crypto` PoW function.

The current implementation was grabbed as-in without too much modifications, however it's now outdated due to Monero's PoW change. This isn't a priority right now because it's an ongoing work on the Monero project and it isn't in MainNet.

Running xmr gives blank output.

So I tested the cargo run for this crate, and am presented with a blank output. Is this the intended function? Or should we be booting up the daemon with ./dxmr? Is it headless? Api? Do we just need to add logging? Could you catch me up to speed? Looking forward to collaborating.

user@userd:~/xmr$ cargo build
   Compiling slab v0.3.0
   Compiling scoped-tls v0.1.0
   Compiling lazy_static v1.0.0
   Compiling xdg v2.1.0
   Compiling strsim v0.6.0
   Compiling cfg-if v0.1.2
   Compiling byteorder v1.2.1
   Compiling unicode-width v0.1.4
   Compiling quote v0.3.15
   Compiling termcolor v0.3.3
   Compiling rustc-serialize v0.3.24
   Compiling regex-syntax v0.4.2
   Compiling xmr-rct v0.1.0 (file:///home/user/xmr/rct)
   Compiling smallvec v0.6.0
   Compiling serde v1.0.27
   Compiling unicode-xid v0.0.4
   Compiling utf8-ranges v1.0.0
   Compiling uuid v0.5.1
   Compiling bitflags v1.0.1
   Compiling rustc-demangle v0.1.5
   Compiling cc v1.0.4
   Compiling libc v0.2.36
   Compiling void v1.0.2
   Compiling futures v0.1.18
   Compiling stable_deref_trait v1.0.0
   Compiling crossbeam v0.3.2
   Compiling slab v0.4.0
   Compiling linked-hash-map v0.5.0
   Compiling vec_map v0.8.0
   Compiling num-traits v0.1.41
   Compiling lazycell v0.6.0
   Compiling ansi_term v0.10.2
   Compiling log v0.4.1
   Compiling textwrap v0.9.0
   Compiling app_dirs v1.1.1
   Compiling synom v0.11.3
   Compiling unreachable v1.0.0
   Compiling time v0.1.39
   Compiling memmap v0.6.2
   Compiling num_cpus v1.8.0
   Compiling atty v0.2.6
   Compiling memchr v2.0.1
   Compiling iovec v0.1.1
   Compiling fs2 v0.4.3
   Compiling rand v0.4.2
   Compiling net2 v0.2.31
   Compiling rand v0.3.20
   Compiling owning_ref v0.3.3
   Compiling backtrace-sys v0.1.16
   Compiling xmr-crypto v0.1.0 (file:///home/user/xmr/crypto)
   Compiling log v0.3.9
   Compiling num-complex v0.1.41
   Compiling num-integer v0.1.35
   Compiling thread_local v0.3.5
   Compiling clap v2.29.2
   Compiling syn v0.11.11
   Compiling futures-cpupool v0.1.8
   Compiling bytes v0.4.6
   Compiling aho-corasick v0.6.4
   Compiling sanakirja v0.8.16
   Compiling num-iter v0.1.34
   Compiling mio v0.6.13
   Compiling num-bigint v0.1.41
   Compiling parking_lot_core v0.2.10
   Compiling regex v0.2.5
   Compiling tokio-io v0.1.5
   Compiling synstructure v0.6.1
   Compiling serde_derive_internals v0.19.0
   Compiling parking_lot v0.4.8
   Compiling tokio-core v0.1.12
   Compiling num-rational v0.1.41
   Compiling backtrace v0.3.5
   Compiling num v0.1.41
   Compiling serde_derive v1.0.27
   Compiling chrono v0.4.0
   Compiling xmr-varint v0.1.0 (file:///home/user/xmr/varint)
   Compiling failure_derive v0.1.1
   Compiling failure v0.1.1
   Compiling env_logger v0.5.0
   Compiling xmr-format v0.1.0 (file:///home/user/xmr/format)
   Compiling xmr-portable-storage v0.1.0 (file:///home/user/xmr/portable-storage)
   Compiling xmr-keys v0.1.0 (file:///home/user/xmr/keys)
   Compiling xmr-primitives v0.1.0 (file:///home/user/xmr/primitives)
   Compiling xmr-levin v0.1.0 (file:///home/user/xmr/levin)
   Compiling xmr-portable-storage-utils v0.1.0 (file:///home/user/xmr/portable-storage-utils)
   Compiling xmr-verification v0.1.0 (file:///home/user/xmr/verification)
   Compiling xmr-chain v0.1.0 (file:///home/user/xmr/chain)
   Compiling xmr-storage v0.1.0 (file:///home/user/xmr/storage)
   Compiling xmr-network v0.1.0 (file:///home/user/xmr/network)
   Compiling xmr-db v0.1.0 (file:///home/user/xmr/db)
   Compiling xmr-p2p v0.1.0 (file:///home/user/xmr/p2p)
   Compiling xmr-sync v0.1.0 (file:///home/user/xmr/sync)
warning: field is never used: `peers`
  --> sync/src/inbound_connection.rs:12:5
   |
12 |     peers: PeersRef,
   |     ^^^^^^^^^^^^^^^
   |
   = note: #[warn(dead_code)] on by default

warning: field is never used: `executor`
  --> sync/src/local_node.rs:16:5
   |
16 |     executor: ExecutorRef,
   |     ^^^^^^^^^^^^^^^^^^^^^

   Compiling xmr v0.1.0 (file:///home/user/xmr)
    Finished dev [unoptimized + debuginfo] target(s) in 79.68 secs

Move `H256::tree_hash` to `Block`.

This function calculates the merkle tree root hash and shouldn't be in H256::tree_hash, possibly should be renamed to something like merkle_root_hash or a more descriptive one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.