profile
viewpoint
Friedel Ziegelmayer dignifiedquire Germany

async-rs/async-std 2618

Async version of the Rust standard library

deltachat/deltachat-core 309

Delta.Chat C-Library with e2e chat-over-email functionality & Python bindings

deltachat/deltachat-core-rust 200

Delta Chat Rust Core library, used by Android/iOS/desktop apps and bindings

deltachat/deltachat-ios 140

Email-based instant messaging for iOS.

async-rs/async-tls 121

A TLS implementation over AsyncRead and AsyncWrite

browserify/browserify-zlib 44

Full zlib module for browserify

dignifiedquire/async-tar 43

A tar archive reading/writing library for async Rust.

async-email/async-imap 39

Async IMAP implementation in Rust

daviddias/js-ethereum-libp2p 21

⛓ Process the ethereum blockchain in the Browser ou Node.js with ♦libp2p 🎉

issue openedfilecoin-project/lotus

[Feature request] Try to spend seal related fees from miner's balance first

It has come to the community's attention some miners, for example, f09037, have been sending Commit messages with the value of 0 FIL. It's discovered that it's because they have customized Lotus code to spend the fees directly from their miner's available balance. 0FIL

Currently, when the miner makes a seal related transaction, the worker address is preferred over the miner's balance for spending the fees.

I'm "guessing" that reversing this behavior comes with 3 benefits:

  1. The worker address (hot wallet) can afford to maintain 0 balance, thus improving security against theft.
  2. It saves some gas on transactions, making it more economical to the miner.
  3. It reduces the hassle of repetitively withdrawing from miner's balance to continue sealing operations.

Therefore, I request this to be officially supported by Lotus. (If the above points are incorrect, please let me know)

Opening this ticket for further discussion per @jennijuju 's suggestion.

For reference: https://filecoinproject.slack.com/archives/C0179RNEMU4/p1606379387232400

created time in 5 minutes

pull request commenthttp-rs/http-types

Several missing MIME type extension detections

these should be caught by the content sniffing, are they not?

richardanaya

comment created time in 17 minutes

issue closedfilecoin-project/lotus

lotus daemon --lite: StateNetworkVersion is always 0

This prevents the multisig creation from working.

closed time in an hour

Kubuxu

issue commentfilecoin-project/lotus

lotus daemon --lite: StateNetworkVersion is always 0

Resolved in #4263

Kubuxu

comment created time in an hour

issue openedfilecoin-project/lotus

constant 4294967295 overflows int AND undefined: ffi.GeneratePieceCIDFromFile

ubuntu20.04
go1.15.5

git clone https://github.com/filecoin-project/lotus.git cd lotus/ export RUSTFLAGS="-C target-cpu=native -g" export FFI_BUILD_FROM_SOURCE=1 make clean all

Compiling filecoin-proofs-api v5.4.1 note: Link against the following native artifacts when linking against this static library. The order and any duplication can be significant on some platforms.

note: native-static-libs: -lhwloc -lOpenCL -lOpenCL -lOpenCL -lgcc_s -lc -lm -lrt -lpthread -lutil -ldl -lutil

Finished release [optimized] target(s) in 5m 24s

++ cat /tmp/tmp.FyCB3Og9Oh ++ grep native-static-libs: ++ head -n 1 ++ cut -d : -f 3

  • local '__linker_flags= -lhwloc -lOpenCL -lOpenCL -lOpenCL -lgcc_s -lc -lm -lrt -lpthread -lutil -ldl -lutil' ++ git rev-parse HEAD
  • sed -e 's;@VERSION@;1d9cb3e8ff53f51f9318fc57e5d00bc79bdc0128;' -e 's;@PRIVATE_LIBS@; -lhwloc -lOpenCL -lOpenCL -lOpenCL -lgcc_s -lc -lm -lrt -lpthread -lutil -ldl -lutil;' filcrypto.pc.template
  • find -L . -type f -name filcrypto.h
  • read
  • find -L . -type f -name libfilcrypto.a
  • read
  • exit
  • rm -f /tmp/tmp.FyCB3Og9Oh
  • popd ~/lotus/extern/filecoin-ffi
  • find -L rust/target/release -type f -name filcrypto.h -exec cp -- '{}' . ';'
  • find -L rust/target/release -type f -name libfilcrypto.a -exec cp -- '{}' . ';'
  • find -L rust -type f -name filcrypto.pc -exec cp -- '{}' . ';'
  • check_installed_files
  • [[ ! -f ./filcrypto.h ]]
  • [[ ! -f ./libfilcrypto.a ]]
  • [[ ! -f ./filcrypto.pc ]]
  • echo '[install-filcrypto/main] successfully built and installed libfilcrypto from source' [install-filcrypto/main] successfully built and installed libfilcrypto from source
  • exit make[1]: Leaving directory '/root/lotus/extern/filecoin-ffi' rm -f lotus go build -ldflags="-X=github.com/filecoin-project/lotus/build.CurrentCommit=+git.53c39b117" -o lotus ./cmd/lotus warning: GOPATH set to GOROOT (/usr/local/go) has no effect

github.com/filecoin-project/lotus/extern/sector-storage

extern/sector-storage/manager.go:114:17: undefined: ffiwrapper.New extern/sector-storage/worker_local.go:148:9: undefined: ffiwrapper.New extern/sector-storage/worker_local.go:473:15: undefined: ffi.GetGPUDevices go build github.com/supranational/blst/bindings/go: build constraints exclude all Go files in /root/lotus/extern/blst/bindings/go go build github.com/ipsn/go-secp256k1: build constraints exclude all Go files in /usr/local/go/pkg/mod/github.com/ipsn/go-secp256k1@v0.0.0-20180726113642-9d62b9f0bc52

github.com/dgraph-io/badger/v2

/usr/local/go/pkg/mod/github.com/dgraph-io/badger/v2@v2.2007.2/value.go:50:5: constant 4294967295 overflows int

github.com/filecoin-project/go-fil-markets/pieceio

/usr/local/go/pkg/mod/github.com/filecoin-project/go-fil-markets@v1.0.5/pieceio/pieceio.go:177:19: undefined: ffi.GeneratePieceCIDFromFile

github.com/filecoin-project/lotus/lib/commp

lib/commp/writer.go:42:17: undefined: ffiwrapper.GeneratePieceCIDFromFile lib/commp/writer.go:65:13: undefined: ffiwrapper.GeneratePieceCIDFromFile lib/commp/writer.go:103:12: undefined: ffi.GenerateUnsealedCID

github.com/filecoin-project/lotus/chain/vm

chain/vm/syscalls.go:79:16: undefined: ffiwrapper.GenerateUnsealedCID make: *** [Makefile:68: lotus] Error 2 root@utserver:~/lotus#

Why do I report mistakes and how should I correct them? thank you! 我不懂英文,最好能用中文交流!

created time in an hour

push eventipfs/go-ipfs

Marcin Rataj

commit sha 8f89163f6cee371dd46f6b087fa973fc8d71524c

fix: escape HTML in error response body See https://github.com/ipfs/go-pinning-service-http-client/pull/5

view details

push time in an hour

PR opened http-rs/http-types

Several missing MIME type extension detections
+4 -0

0 comment

1 changed file

pr created time in 2 hours

push eventipld/metrics

Automated Publisher

commit sha c538247cf692abe2193dd6c2693591b0dede03fc

Automated publish: Fri Nov 27 00:23:33 UTC 2020 1903a4d307d90f3e0e4583ce578b0995bfaf6e6e

view details

push time in 2 hours

Pull request review commentdeltachat/deltachat-core-rust

Re-enable Export to the new backup format, add backup progress, add a test for the backup progress

 def ac_outgoing_message(self, message):         m = message_queue.get()         assert m == msg_in -    def test_import_export_online_all(self, acfactory, tmpdir, lp):+    def test_import_export_online_all(self, acfactory, tmpdir, data, lp):         ac1 = acfactory.get_one_online_account()          lp.sec("create some chat content")-        contact1 = ac1.create_contact("some1@example.org", name="some1")-        contact1.create_chat().send_text("msg1")+        chat1 = ac1.create_contact("some1@example.org", name="some1").create_chat()+        chat1.send_text("msg1")         assert len(ac1.get_contacts(query="some1")) == 1++        original_image_path = data.get_path("d.png")+        chat1.send_image(original_image_path)+         backupdir = tmpdir.mkdir("backup")          lp.sec("export all to {}".format(backupdir))-        path = ac1.export_all(backupdir.strpath)-        assert os.path.exists(path)+        with ac1.temp_plugin(ImexTracker()) as imex_tracker:+            path = ac1.export_all(backupdir.strpath)+            assert os.path.exists(path)++            # check progress events for export+            imex_tracker.wait_progress(1, progress_upper_limit=249)

This should be replaced with assert imex_tracker.wait_progress(x, ...) == x, otherwise it is possible that it simply returns None because of an error, yet the test succeeds.

Hocuri

comment created time in 2 hours

Pull request review commentdeltachat/deltachat-core-rust

Re-enable Export to the new backup format, add backup progress, add a test for the backup progress

 async fn import_backup(context: &Context, backup_to_import: impl AsRef<Path>) ->     );      let backup_file = File::open(backup_to_import).await?;+    let file_size = backup_file.metadata().await?.len();     let archive = Archive::new(backup_file);+     let mut entries = archive.entries()?;     while let Some(file) = entries.next().await {         let f = &mut file?;++        let current_pos = f.raw_file_position();+        let progress = 1000 * current_pos / file_size;+        if progress > 10 && progress < 1000 {

I think it should be rescaled to the range 10..1000 rather than being stuck until progress reaches 10.

Hocuri

comment created time in 2 hours

Pull request review commentdeltachat/deltachat-core-rust

Re-enable Export to the new backup format, add backup progress, add a test for the backup progress

 def ac_process_ffi_event(self, ffi_event):         elif ffi_event.name == "DC_EVENT_IMEX_FILE_WRITTEN":             self._imex_events.put(ffi_event.data2) +    def wait_progress(self, target_progress, progress_upper_limit=1000, progress_timeout=60):+        while True:+            ev = self._imex_events.get(timeout=progress_timeout)+            if isinstance(ev, int) and ev >= target_progress:+                assert ev <= progress_upper_limit, \+                    str(ev) + " exceeded upper progress limit " + str(progress_upper_limit)+                return ev+            if ev == 1000 or ev == 0:

The check ev == 1000 is not needed, this case is handled by the block right above.

Hocuri

comment created time in 2 hours

issue commentfilecoin-project/lotus

lotus daemon --lite: StateNetworkVersion is always 0

@whyrusleeping Should this issue be closed since #4263 was merged?

Kubuxu

comment created time in 2 hours

push eventipfs/go-ipfs

Marcin Rataj

commit sha 9ff07fa1d6f838aa8680e43312871705829f3fb8

refactor: parallel remote service ls --pin-count

view details

push time in 2 hours

pull request commentfilecoin-project/specs-actors

Fix: sector extension error #1309

This behaviour is by design, which we can discuss that in #1309. I am going to close this PR because even if we decided to change it, the change would have to land with a new network version upgrade (v9 or greater) in order to preserve chain history compatibility.

ethan-xiao

comment created time in 3 hours

issue commentfilecoin-project/specs-actors

sector extension error

This is by design, motivated by security considerations for the V1 proof. @nicola can you add any more clarity?

ethan-xiao

comment created time in 3 hours

issue commentdeltachat/deltachat-ios

sometimes messages are sent without text

i found a way to reproduce: it is a race condition, the self.draft.draftText may be empty by some other call cleaning up the input line.

if you force a delay using DispatchQueue.global().asyncAfter(deadline: .now() + 1) { instead of DispatchQueue.global().async { this happens every time. i think, the bug is in "forever" :)

r10s

comment created time in 3 hours

pull request commentfilecoin-project/lotus

Add new booststrappers

@maobisheng seems like the peers changed their libp2p-keys:

/dns4/bootstrap-0.starpool.in/tcp/12757/p2p/12D3KooWGHpBMeZbestVEWkfdnC9u7p6uFHXL1n7m1ZBqsEmiUzz                      
connect 12D3KooWGHpBMeZbestVEWkfdnC9u7p6uFHXL1n7m1ZBqsEmiUzz: failure                                                 
ERROR: failed to dial 12D3KooWGHpBMeZbestVEWkfdnC9u7p6uFHXL1n7m1ZBqsEmiUzz: all dials failed                          
  * [/ip4/61.147.123.111/tcp/12757] failed to negotiate security protocol: peer id mismatch: expected 12D3KooWGHpBMeZb$stVEWkfdnC9u7p6uFHXL1n7m1ZBqsEmiUzz, but remote key matches 12D3KooWM9AorKUNVaVqzweU7XVtheoVHFdbssLdyA3zmN6i2q1r
/dns4/bootstrap-1.starpool.in/tcp/12757/p2p/12D3KooWQZrGH1PxSNZPum99M1zNvjNFM33d1AAu5DcvdHptuU7u                      
connect 12D3KooWQZrGH1PxSNZPum99M1zNvjNFM33d1AAu5DcvdHptuU7u: failure                                                 
ERROR: failed to dial 12D3KooWQZrGH1PxSNZPum99M1zNvjNFM33d1AAu5DcvdHptuU7u: all dials failed                          
  * [/ip4/61.147.123.121/tcp/12757] failed to negotiate security protocol: peer id mismatch: expected 12D3KooWQZrGH1Px$NZPum99M1zNvjNFM33d1AAu5DcvdHptuU7u, but remote key matches 12D3KooWLMi5Yc1Z4a6V6KRqzNuGC6ZY5vzLSLgvVcxuFPucY86i      

Can you update the bootstrap info, otherwise we will be forced to remove them.

maobisheng

comment created time in 3 hours

issue commentdeltachat/deltachat-ios

sometimes messages are sent without text

the sending takes place in https://github.com/deltachat/deltachat-ios/blob/d1ded588948d0117e1e7dddd0e2754a43bf115d2/deltachat-ios/Chat/ChatViewController.swift#L918 - this is probably the part that needs a closer look.

r10s

comment created time in 3 hours

issue openeddeltachat/deltachat-core-rust

Trailing new lines aren't removed from incoming classic email

  • Operating System (Linux/Mac/Windows/iOS/Android): Android
  • Delta Chat Version: 1.14.5
  • Expected behavior: empty lines at end/start are stripped
  • Actual behavior: empty lines are preserved
  • Screenshots: deltachat-2020-11-26-175334

created time in 3 hours

issue closeddeltachat/deltachat-core-rust

Empty quote on receiver side

I received an empty quote on Android when actually in the sender side (iOS) had a reply text deltachat-2020-11-26-171151

closed time in 4 hours

adbenitez

issue commentdeltachat/deltachat-core-rust

Empty quote on receiver side

ah, i thought you file an issue for the trailing empty lines :) this one is probably related to ios, i just added an issue there: https://github.com/deltachat/deltachat-ios/issues/1013

adbenitez

comment created time in 4 hours

issue openeddeltachat/deltachat-ios

sometimes messages are sent without text

it happens to me two times that i typed in some text and the message was sent empty, without text.

the second time, i quoted another message - the quote was sent, but not the text.

the message is shown as empty also on the sending device, so it seems not be related to message/receiving, my current theory is that dc_msg_set_text() was given an empty string, for whatever reason.

i am currently failing to find a way how to reproduce that.

maybe the input-field goes away, before the text is grabbed? as the message is sent in a thread? sort of race condition?

i anyone has an idea, this is very welcome :)

created time in 4 hours

issue openeddeltachat/deltachat-core-rust

Empty quote on receiver side

I received an empty quote on Android when actually in the sender side (iOS) had a reply text deltachat-2020-11-26-171151

created time in 4 hours

create barnchfilecoin-project/lotus

branch : feat/accounting-tool

created branch time in 5 hours

push eventChainSafe/forest

Eric Tu

commit sha db6424662329d99b52ca581ea165a37c4c40c3e5

MessagePool Greedy Message Selection (#856) * greedy and priority * 1 basic test * test trimming * test priority * clean up on aisle 5 * little optimization and bug fix * fix tests and clippy * clipppppy * some suggestions * more fixes * enumberate after skip * little dedup * austins fixes * pub crate

view details

Austin Abell

commit sha 1b4dd61d02e47014f8e0be887628af22c2deba50

Add sled backend and cleanup RocksDb type (#858) * Wip setup sled as a feature * Clean up RockDb usage * Small tweaks * Remove batch operations from sled * Lint * Make exports consistent * Remove unnecessary config option

view details

Austin Abell

commit sha d690d484ba1fdcd895ca56c21e177a24cd65f4b5

Implement chain export functionality and car writer (#861) * Implement car exporting functionality * Tests and cleanup functionality * Fix bug * make loading car async * fmt * impl AsyncRead for gzip decoder

view details

Austin Abell

commit sha f325bb35faaf90ff05a69e0ae06afeb82ae8f9ce

Fix unlock unvested funds (#865)

view details

Austin Abell

commit sha 44f2c22e5e8f16841493f4af6e4fa0c4ddc5a3fc

Fix exit code handling in market (#866) * Fix exit code handling in market * There was others :O

view details

Austin Abell

commit sha 1da3294cd0b81fec2de27ceb0d4e7453e45badf1

Fork serde_bytes to disallow string and array deserialization (#868)

view details

Purple Hair Rust Bard

commit sha 56b4961f15d51a1436c4ea2026de996a0cd7df96

Rpc fixes and implementations (#841) * fixes implementations * fixes to key management * Update blockchain/chain/src/store/chain_store.rs Co-authored-by: Austin Abell <austinabell8@gmail.com> * fixes to miner info * cargo fmt * changes to sync api * revert some stuff in keystore * remove println * remove pritns in miner actor * remove println in crypto * fix suggestions in state mgr * remove opt_vec in address * lint * remove get_power_raw * remove lookback in chainstore * comment * lint * remove drand generic constrint * const undef * serialize repr * Refactor json usage and cleanup logic * Fix actor dev deps * Remove unused * remove implied values on version * Remove redundant mutex access Co-authored-by: Austin Abell <austinabell8@gmail.com> Co-authored-by: Eric Tu <tu.eric@hotmail.com> Co-authored-by: Eric Tu <6364934+ec2@users.noreply.github.com>

view details

austinabell

commit sha 6fa137cf1b6af7006b6e6300e6e85197c1fb544c

Merge branch 'main' of github.com:ChainSafe/forest into austin/fixcov

view details

push time in 5 hours

issue commentlibp2p/rust-libp2p

How can I use libp2p simply for NAT traversal?

Hi @actuday6418,

I think the concept of NAT is too complex to summarize in a single Github issue. As a first introduction I would propose reading through the Wiki article. As rust-libp2p uses TCP as its underlying transport protocol the TCP hole punching article might be of some help as well.

Today rust-libp2p does not offer any NAT traversal strategies. You can follow current efforts on https://github.com/libp2p/rust-libp2p/issues/1722.

In case you control the routers in front of both machines you might be able to open and forward specific ports from those routers to your machines. For details see the port forwarding article.

actuday6418

comment created time in 5 hours

push eventhttp-rs/tide-websockets

Jacob Rothstein

commit sha fe95a5371647da3cf8d0bbb7cd0df9dcc5c5b312

add send_json

view details

Jacob Rothstein

commit sha aa7b355f4193e50db6332545f9473748be632db8

export message and error

view details

push time in 6 hours

push eventlibp2p/rust-libp2p

Max Inden

commit sha dae07b075b421fb0a33bbf85d91ad802e37845f9

swarm: Add ExpandedSwarm::is_connected (#1862) Commit 335e55e6 removed the `ConnectionInfo` trait in favor of `PeerId`s. Commit 1bd013c8 removed `ExpandedSwarm::connection_info` as it would only return the `PeerId` that the caller is already aware of. One could use `ExpandedSwarm::connection_info` not only to retrieve the `ConnectionInfo` for a given peer, but also to check whether the underlying `Network` has a connection to the peer. This commit exposes the `is_connected` method on `Network` via `ExpandedSwarm` to check whether the `Network` has an established connection to a given peer.

view details

dependabot[bot]

commit sha 22aa07c2f5ff1ab7b7d24bf2cbf6ab739f1515fa

Update rustls requirement from 0.18.0 to 0.19.0 Updates the requirements on [rustls](https://github.com/ctz/rustls) to permit the latest version. - [Release notes](https://github.com/ctz/rustls/releases) - [Changelog](https://github.com/ctz/rustls/blob/main/OLDCHANGES.md) - [Commits](https://github.com/ctz/rustls/compare/v/0.18.0...v/0.19.0) Signed-off-by: dependabot[bot] <support@github.com>

view details

push time in 6 hours

more