Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 22 21:46
    ordian labeled #10978
  • Aug 22 21:46
    ordian unlabeled #10978
  • Aug 22 21:46
    ordian milestoned #10978
  • Aug 22 17:08
    dvdplm synchronize #10978
  • Aug 22 17:08

    dvdplm on chore

    Extract engines to own crates (… Merge branch 'master' into dp/c… (compare)

  • Aug 22 16:36

    debris on chore

    (compare)

  • Aug 22 16:31
    dvdplm commented #10371
  • Aug 22 16:25

    dvdplm on master

    Extract engines to own crates (… (compare)

  • Aug 22 16:25
    dvdplm closed #10966
  • Aug 22 15:43
    ddorgan reopened #10985
  • Aug 22 15:43
    ddorgan closed #10985
  • Aug 22 15:42
    chakhalyan1 commented #10555
  • Aug 22 15:41
    gituser commented #10371
  • Aug 22 15:15
    c0deright commented #10371
  • Aug 22 15:02
    parity-cla-bot commented #10985
  • Aug 22 15:02
    ddorgan opened #10985
  • Aug 22 15:02

    ddorgan on dd-ci-test

    CI Test - Ignore (compare)

  • Aug 22 14:47
    joshua-mir commented #10555
  • Aug 22 14:46
    chakhalyan1 commented #10555
  • Aug 22 14:10
    dvdplm unlabeled #10983
Guillermo Pérez Alba
@gperezalba_gitlab
Okey, running the network for several years is the plan... So which are the disadvantages of no storing all states (no archive node)? is just the fact that syncing has to be done from stored states or anything else?
joshua-mir
@joshua-mir
Well, you don't have access to historical state outside your pruning-history... As in, if want to know what the state of a contract was on a historical block, you won't have access to it
That's about it.
Guillermo Pérez Alba
@gperezalba_gitlab
okey, thanks ;)
richard
@jmzhuzhonghua
@joshua-mir Iwant to the performance of parity jsonrpc. how many concurrents do it support?
joshua-mir
@joshua-mir
@jmzhuzhonghua depends on --jsonrpc-server-threads, which is also limited by the number of threads available on your machine if you are being safe
richard
@jmzhuzhonghua
is --jsonrpc-server-threads fixed? can threads increase dynamically?
joshua-mir
@joshua-mir
Yes, it's fixed. They can't scale up past the value you set (but obviously there can be less if you have no requests)
richard
@jmzhuzhonghua
i want to deveop central wallet server which can store private keys and sign transaction for client. client and server communicate by json-rpc. the wallet server provides rpc calls as a service. if i use parity rust jsonrpc library to build the backend server its performance can meet the requirement of sign saas service? or should i use springboot framework or c++ to build the wallet server?
joshua-mir
@joshua-mir
Rust is pretty high performance - at least if you want to reuse our existing code it will be easier. But I think geth's clef is already exactly what you are describing 😅
richard
@jmzhuzhonghua
i want to know how secure clef is compared with the account management of parity. by the way i hope i can use private key to sign running in sandbox to reduce the risk of privatekey leaking. how can i achieve this?or generally how can i design a very secure signer?
richard
@jmzhuzhonghua
@joshua-mir error: failed to run custom build command for ring v0.12.1 (https://github.com/paritytech/ring#bae475e9)
process didn't exit successfully: D:\zhu\project\CloudWallet\fenzoom\target\debug\build\ring-1d886bbbdaae868b\build-script-build (exit code: 101)
--- stderr
thread '<unnamed>' panicked at 'execution failed', C:\Users\zhu zhong hua.cargo\git\checkouts\ring-5235c7ce74c7ef81\bae475e\build.rs:642:9
note: Run with RUST_BACKTRACE=1 environment variable to display a backtrace.
when building parity, failed whe compling ring
how to solve this problem?
joshua-mir
@joshua-mir
I haven't seen that in a long time, @jmzhuzhonghua what version of parity are you building? And do you have up to date dependencies?
Wesley van Heije
@wslyvh_twitter

@wslyvh_twitter no proper tutorial, closest thing we have is currently this issue comment https://github.com/paritytech/parity-ethereum/issues/10304#issuecomment-461086818

Export state requires the chain to be synced with –fat-db on. What if we don't have it on? @joshua-mir

joshua-mir
@joshua-mir
@wslyvh_twitter you would need to run a new node and connect to your network, running with fat-db enabled 😅
Wesley van Heije
@wslyvh_twitter
Yes. I was afraid of that :)
Thanks. I'll start syncing
richard
@jmzhuzhonghua
@joshua-mir parity 2.19. crate ring is compiled successfully under linux. the errors occurred under windows.
richard
@jmzhuzhonghua
I have installed visual studio 2015 , ring compiled ok
richard
@jmzhuzhonghua
@joshua-mir Can I use personal_sign to sign transaction and use sendRawTransaction to the chain?
Guillermo Pérez Alba
@gperezalba_gitlab
Hi! I'm not sure if I understand what --gas-cap means... (In a private PoA) If I have a --gas-floor-target of 8000000 and --gas-cap of 10000000 it means validators will try to seal blocks with 8000000 gas but if there's a lot of TX volume they seal blocks of 10000000? Thanks
And why default values are (in some docs) gas_floor_target = "4700000"
gas_cap = "6283184" ? Is it related to performance?
joshua-mir
@joshua-mir
@jmzhuzhonghua yes that should work - but you can probably just use personal_sendTransaction to do both in a single call
@gperezalba_gitlab yes gas_floor_target is the target for empty blocks, and every block that is full will increase the blockGasLimit of the next block, up to gas_cap as a hard max
(you're still limited by consensus in how much you can increase gasLimit block to block, so you don't immediately go to the gas_cap)
Guillermo Pérez Alba
@gperezalba_gitlab
Okey I understand, have you ever done tests with big gas_cap (12/15,000.000) and making blockGasLimit increase until gas_cap? I'll do my own tests but just to use as indicators...
joshua-mir
@joshua-mir
@gperezalba_gitlab we generally recommend a max of 8M gas for 4 second block time - but I've seen up to 10M work and obviously this is extremely hardware and network dependent
richard
@jmzhuzhonghua
@joshua-mir Do you know if there is rust library support EOS private/public keypair generation and signature of EOS transaction?
joshua-mir
@joshua-mir
@jmzhuzhonghua no, I'm not familiar with the signature scheme in EOS and that's probably off topic in this channel 😅
richard
@jmzhuzhonghua
@joshua-mir when I build parity there are errors:error: failed to select a version for the requirement webpki = "^0.17"
candidate versions found which didn't match: 0.21.0, 0.20.0, 0.19.1, ...
location searched: crates.io index
required by package rustls v0.11.0
... which is depended on by hyper-rustls v0.11.0
... which is depended on by fetch v0.1.0 (D:\zhu\project\CloudWallet\fenzoom\util\fetch)
... which is depended on by price-info v1.12.0 (D:\zhu\project\CloudWallet\fenzoom\price-info)
... which is depended on by ethcore-miner v1.12.0 (D:\zhu\project\CloudWallet\fenzoom\miner)
... which is depended on by ethcore v1.12.0 (D:\zhu\project\CloudWallet\fenzoom\ethcore)
... which is depended on by evmbin v0.1.0 (D:\zhu\project\CloudWallet\fenzoom\evmbin)
how to solve this problem?
richard
@jmzhuzhonghua
But under Linux, there is no error! there are errors under windows.
joshua-mir
@joshua-mir
@jmzhuzhonghua have you updated rust with rustup run cargo clean?
richard
@jmzhuzhonghua
yes.
I have update rust to 1.37.0 and run cargo clean.
image.png
another question: one transfer transaction 0xa7bc04affdf2c604e3e2dcad367d8226570997eb33c3f0cc2e81efaf461e7306 has pending over one hour. what's the probable problem?
Guillermo Pérez Alba
@gperezalba_gitlab
Hi! I don't know if I understand param cache-size...how to choose it? according to the RAM?
joshua-mir
@joshua-mir
@gperezalba_gitlab you should set cache-size to less than available ram - parity uses more than cache-size memory
Guillermo Pérez Alba
@gperezalba_gitlab
So 4096 is ok for 8GB RAM?
joshua-mir
@joshua-mir
Yes - but it also depends on network conditions
Guillermo Pérez Alba
@gperezalba_gitlab
okey, thanks ;)
joshua-mir
@joshua-mir
As in, you want cache-size to be more than state size for your blockchain
Guillermo Pérez Alba
@gperezalba_gitlab
And how do I know the size of a state?
richard
@jmzhuzhonghua
@joshua-mir i have used https://lib.rs/crates/ripemd160 but the result is not correct. do you have the experience using ripemd160 lib in rust?
joshua-mir
@joshua-mir
@gperezalba_gitlab I believe it should be in your logs, but recent events leads me to believe that value isn't accurate
richard
@jmzhuzhonghua
@joshua-mir in parity source, there is "mod hash;" statement, where can I find mod hash?
joshua-mir
@joshua-mir
@jmzhuzhonghua you should check out the cargo.toml file of the crate that you are looking at, but it's probably something from https://github.com/paritytech/parity-common