Comments (2)
@duckartes maybe try this diff applied to master
diff --git i/src/bulk.rs w/src/bulk.rs
index 54bc3b2..b7408ed 100644
--- i/src/bulk.rs
+++ w/src/bulk.rs
@@ -151,6 +151,25 @@ fn load_headers(daemon: &Daemon) -> Result<HeaderList> {
Ok(headers)
}
+#[cfg(target_pointer_width = "32")]
+fn set_open_files_limit(limit: u32) {
+ let resource = libc::RLIMIT_NOFILE;
+ let mut rlim = libc::rlimit {
+ rlim_cur: 0,
+ rlim_max: 0,
+ };
+ let result = unsafe { libc::getrlimit(resource, &mut rlim) };
+ if result < 0 {
+ panic!("getrlimit() failed: {}", result);
+ }
+ rlim.rlim_cur = limit; // set softs limit only.
+ let result = unsafe { libc::setrlimit(resource, &rlim) };
+ if result < 0 {
+ panic!("setrlimit() failed: {}", result);
+ }
+}
+
+#[cfg(target_pointer_width = "64")]
fn set_open_files_limit(limit: u64) {
let resource = libc::RLIMIT_NOFILE;
let mut rlim = libc::rlimit {
from electrs.
Thanks for reporting this issue!
Fixed a bit differently at 4f8d83f.
from electrs.
Related Issues (20)
- Bug:
- Bug: electrs p2p disconnects on "Broken pipe (os error 32)" and exits
- Electrs port 3000 not working HOT 3
- Feature: HOT 1
- Bug: Crash on start if can't connected to bitcoind HOT 3
- Bug: UnknownSegwitFlag(0) HOT 6
- Thread main panicked - ARM64 HOT 3
- Bug: Addresses affected by descendant transactions are not notified on transaction replacement HOT 4
- Feature: Separate daemon + rocksdb from electrs interface HOT 4
- `electrs` uses `bitcoincore-rpc` HOT 4
- Rocksdb version HOT 7
- Feature: support testnet4 HOT 4
- Build:
- Bug: Failure when bitcoind has not yet loaded mempool HOT 1
- Bug: unused config fields (silently ignored config flags) HOT 2
- Indexing fails at Block 1 (00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048) HOT 5
- electrs stops when looking up for addresses with a lot of transactions
- Config: confused by skip_block_download_wait HOT 2
- Config:Indexing is not started HOT 4
- Bug: Electrs fails when bitcoind has blocksonly=1 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electrs.