codechain icon indicating copy to clipboard operation
codechain copied to clipboard

CodeChain's official implementation in Rust.

Results 64 codechain issues
Sort by recently updated
recently updated
newest added

There are some issues in sending invalid timestamp onChain blocks. --- Below is a test scenario. 1. Make block1 and block2. 2. The timestamp in Block2's header should be invalid....

bug
test

``` stack backtrace: 0: 0x5620918d8876 - backtrace::backtrace::libunwind::trace::h89ce6f97ed704bb8 at /home/sgkim126/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.7/src/backtrace/libunwind.rs:53 - backtrace::backtrace::trace::h2ea11176de8b52b9 at /home/sgkim126/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.7/src/backtrace/mod.rs:42 1: 0x5620918d2d13 - backtrace::capture::Backtrace::new_unresolved::h12c4aafe92d9af95 at /home/sgkim126/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.7/src/capture.rs:88 2: 0x5620918d2c6d - backtrace::capture::Backtrace::new::hc701411efe5ca320 at /home/sgkim126/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.7/src/capture.rs:63 3: 0x5620906d13c3 - panic_hook::panic_hook::hbb6739b4e365caf1 at...

bug

We build CodeChain binary in every task in Travis. It takes about 10-15 mins per task. 1. To run clippy and rustfmt 2. To make sure it doesn't have a...

test
build

We currently use ruftfmt and clippy with a toolchain nightly-2019-05-17. But the stable version have caught up to our last nightly version. nightly nightly-05-17: rustfmt 1.2.2-nightly (5274b49 2019-04-24) clippy 0.0.212...

util

Depends on: https://github.com/CodeChain-io/codechain/pull/1922 Contains https://github.com/CodeChain-io/codechain/pull/1923

do-not-merge

#### codechain log ``` #910487400 2019-08-29 17:45:23.086394112 block-propagation.ext DEBUG sync Body download completed for #469014(0xdcfa…3e3a) #910487400 2019-08-29 17:45:23.086455639 Blocks Verifier #1 TRACE headerchain Inserting block header #468079(0x4c3e…bc27) to the headerchain....

bug

I found an error log that should not be printed. ``` block-propagation.ext sync Invalid header update state. best_hash: 0x7f06…2d5c, self.pivot.hash: 0x5abf…e26b, first_header_hash: 0xa959…1e89 Block #1858670 0x7f067a2e678cb72261061e6ead4cc046dc18ac46f2b166c8ab02a49b74e92d5c Block #1858664 0x5abfd2cf53b54bfc8bc87f38e57e2c7e4706befc71288ae0bea08bff0652e26b Block...

bug

When CodeChain executes sign function, a private key may be exposed in memory. If we run the code in SGX, other programs cannot find the private key value in memory.

crypto