Constantine Bytensky
Constantine Bytensky
Working on it.
Faced this error. Log: ``` 2021-12-21 22:55:08.434 [INF] PROT: Accepted block cd3f21aa6197c8b5dd0583f9b77d6349e9c187cc7c319ecc1118b9165bd0f9dd via relay 2021-12-21 22:55:09.741 [INF] PROT: Accepted block c425a6e0a1f0ca6113604dc36109aaafac5f5d97d1ea3af119ee9a28b2c093e8 via relay 2021-12-21 22:55:09.769 [INF] PROT: Accepted block 631ab743d3fd8b075ac6e615e4b9d274184d8456828ff10ac84ac1b1306defcd...
Full log: ``` 2021-12-13 14:27:12.213 [INF] TXMP: RPC Incoming connection from [::1]:35774 2021-12-13 14:27:12.216 [CRT] RPCS: Exiting: Fatal error in goroutine `routerInitializer-handleIncomingMessages 4`: block 58c2d4199e21f910d1571d114969cecef48f09f934d42ccb6a281a15868f2999 does not exist github.com/kaspanet/kaspad/domain/consensus.(*consensus).validateBlockHashExists /daglabs/go/src/github.com/kaspanet/kaspad/domain/consensus/consensus.go:661...
### 1. Use `_start` instead of `main` and get rid of startup code. `_start` is the symbol that `ld` is lookig for as entry point. #### 1.1. In `main.rs` instead...
### 2. Use custom build script. #### 2.1. Add `rustflags` to use custom build script To use build script located in file `elf64-static.ld` add to `.cargo/config`: ``` [build] rustflags =...
### 3. Using syscalls instead of libc When using syscalls there is no need for dynamic linking that significally reduces file size. Example here: https://github.com/cbytensky/hello_syscall
I wrote more detailed issue: https://github.com/johnthagen/min-sized-rust/issues/44 So closing this issue.
`lmdb` seems to be noticeably faster for me than `leveldb` when I was woking on [katnip v.2](https://github.com/cbytensky/katnip). When I observed the process of importing data from `kaspad` to `katnip` it...