hcashorg / hcd Goto Github PK
View Code? Open in Web Editor NEWHC daemon
License: ISC License
HC daemon
License: ISC License
Hi ,
I ran an testnet chain in both AWS and macOS. But seems the sync is in stuck in "blocks": 84405 for several hours. I got no error message in both hcd and hcwallet.
Thanks,
2018/08/21 15:30:04 http: TLS handshake error from 192.168.1.173:52104: tls: first record does not look like a TLS handshake
2018/08/21 15:30:14 http: TLS handshake error from 192.168.1.173:52105: read tcp4 192.168.1.107:19109->192.168.1.173:52105: i/o timeout
Why?
if use hcctl --wallet getaccountaddress "default"
will show an address ,but if use hcctl --wallet getaddressesbyaccount "default"
it will not show the address ,like:
hcctl --wallet getaccountaddress "default"
HsUASZhY6zuKiSmsrAzRT2MeuuZwiMSrQA7
and then:
hcctl --wallet getaddressesbyaccount "default"
[ "HsWs21CP9MMqg4j3e3QSnYZDBKzXSqjhjqA", "HsUesTiQZzUCg5WPebxYPexEWNbHUAES571", "HsG5BnENoRrke6jvqPPDptEw2xpCfmjhJQ4" ]
it's not in the default account,but if you use
hcctl --wallet getnewaddress
HsUASZhY6zuKiSmsrAzRT2MeuuZwiMSrQA7
and now if you use the
hcctl --wallet getaddressesbyaccount "default"
[ "HsWs21CP9MMqg4j3e3QSnYZDBKzXSqjhjqA", "HsUesTiQZzUCg5WPebxYPexEWNbHUAES571", "HsG5BnENoRrke6jvqPPDptEw2xpCfmjhJQ4", "HsUASZhY6zuKiSmsrAzRT2MeuuZwiMSrQA7" ]
the address is in the account.
the same issues shows as use hcctl --wallet getaccountaddress "postquantum" and getnewaddress "postquantum"
@coolsnady @tpkeeper @ycjmail @waitkeeper @GladysKellogg
Hypercash's algo is the same as HSR? or is it Blake256 algo? Please confirm exact algo being used by HC for mining blocks?
RT
I used decred function to submit blockhex on testnet and the return :
Block submitted via getwork rejected: invalidate extradata.
extradata is 8000000100000000000005a0
Hi, I followed this instructions on how to build and sign a transaction. Obviously, I did not create a dummy transaction and used the transaction hash, output index and script from a real transaction.
Overall, the process looked correct, even the signature validation passed (I tried using a different private key and received a verify error, so the signature and private keys are definitely correct). The transaction I created looks like this :
01000000015aa1fb9e9daa6be147fb7f9d8040c6295dd2638544d898c71edd0e57a3ca8c250100000000ffffffff010095ba0a0000000000001976a9142c98015e6f66aaf76bf0e34a2b451b66af60a79a88ac000000000000000001ffffffffffffffff00000000ffffffff6b483045022100875627d0e3d78648690c0387324ac1e71282cc5972ee6dcf605a93de7c81a4150220024e9b67eae18cd83fc68c67c6011be4728eb1056c13c381b20c33b3519638240121032b6f2d4acf053eaf6406c8dbe10e7d8a95bf80f6e751786396fdbad5f3982a6e
The explorer decodes it correctly, but when I try to broadcast I get this error:
Error: -1: Rejected transaction 24ff1a16ef5cf41487e9a10976bc3241256be22114bb1e610dbabe3ef3c3d99f: failed to validate input 24ff1a16ef5cf41487e9a10976bc3241256be22114bb1e610dbabe3ef3c3d99f:0 which references output 258ccaa3570edd1ec798d8448563d25d29c640809d7ffb47e16baa9d9efba15a:1 - execute fail, fail on stack (input script bytes 483045022100875627d0e3d78648690c0387324ac1e71282cc5972ee6dcf605a93de7c81a4150220024e9b67eae18cd83fc68c67c6011be4728eb1056c13c381b20c33b3519638240121032b6f2d4acf053eaf6406c8dbe10e7d8a95bf80f6e751786396fdbad5f3982a6e, prev output script bytes 76a914fa1a05d6a0a80a917d93d6436d642e1d0c113a3d88ac)
.
I'm not quite sure what I'm doing wrong here.
The only abnormal thing I see is the "amountin": -1e-8,
, but I assume it like that because the transaction was not yet broadcasted.
We are using v2.1.0 version of the wallet.
Through the documentation (https://github.com/HcashOrg/hcd/blob/master/docs/json_rpc_api.md), I didn't find an api that introduced the local wallet version.
I need to get tthe wallet version to monitor whether the wallet needs to be updated.
I want to install hcd by 'https://wiki.h.cash/getting-started/user-guides/cli-installation/',but,i can't find the file here.
How swap HSR to HC
$:dep ensure
The following issues were found in Gopkg.toml:
unable to deduce repository and source type for "golang.org/x/crypto": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/crypto?go-get=1": Get http://golang.org/x/crypto?go-get=1: dial tcp 216.239.37.1:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
ProjectRoot name validation failed
this question is my or normal? need help
收款地址太多了,如果后面有omni协议的话怕有遗漏的地址
Hi, I want to start a SIMNET to test my wallet service, but after I start the auto generate block option for a while, hcd throws an exception
command:
./hcd --simnet --rpcuser=leor --rpcpass=123456 --datadir="./blockchain_data" --rpclisten=0.0.0.0:10800 --generate --miningaddr=Ssi3tLCG8qo2rkofyQ9R6R9fxFvFeUxyxQX
error message:
[ERR] MINR: Unexpected error while processing block submitted via CPU miner: list size too small: 0 < 5
OS: Ubuntu 18.04
{"result":null,"error":{"code":-32603,"message":"-1: Rejected transaction 9d5a41c22cc57d74629fc1e754ec8eb391d30a1907e8088765bb44ef286fb508: orphan transaction 9d5a41c22cc57d74629fc1e754ec8eb391d30a1907e8088765bb44ef286fb508 references outputs of unknown or fully-spent transaction d148e279fa5b6df22f2d473623a140f6f1d9617cd4548c02713e7cac95081a24"},"id":"curltest"}
Please add batched request support: decred/dcrd#841
I've been trying for 5 days to get in touch with you via your Telegram channel admins. Nobody is helping me. I'd like to discuss bug bounty terms before I report the vulnerability. If I again do not receive a response, I will publicly release the exploit.
Network: testnet
We blockchain has synced completed.
The json-rpc api call "getinfo" return blocks is 1019, but call getblockcount return 0.
Is HC not officially launched now? Can README.md be modified? It is still a description of testnet1.
github/hcwallet-master/rpc/legacyrpc imports
github.com/HcashOrg/hcd/chaincfg/chainec imports
github.com/HcashOrg/hcd/hcec/edwards imports
github.com/HcashOrg/hcd/hcec/ed25519 tested by
github.com/HcashOrg/hcd/hcec/ed25519.test imports
github.com/HcashOrg/hcd/ed25519/edwards25519: module github.com/HcashOrg/hcd@latest found (v0.0.0-20210112094503-27c7ab1227b7), but does not contain package github.com/HcashOrg/hcd/ed25519/edwards25519
http: TLS handshake error from 127.0.0.1:58343: remote error: tls: illegal parameter
2018-08-16 11:18:13.090 [ERR] MINR: Failed to create new block template: failed to do final check for block workless sanity when making new block template: block contains too many signature operations - got 5001, max 5000
Hi there,
Could anyone give me an instruction of how to get some test coins in the testnet?? I need some to conduct the RPC test.
Thanks a lot in advance!!!
After following instructions, I see the following issue, please advise
☯ glide install
[ERROR] Failed to find glide.yaml file in directory tree: Cannot resolve parent of /
2019-03-13 01:31:09.845 [WRN] PEER: too old version peer 47.52.75.204:14008 (outbound)
2019-03-13 01:31:09.845 [WRN] PEER: too old version peer 47.52.75.204:14008 (outbound)
2019-03-13 01:31:09.845 [INF] BMGR: New valid peer 47.52.75.204:14008 (outbound) (/hcwire:0.3.0/hcd:2.0.3/)
2019-03-13 01:31:09.846 [INF] SRVR: Banned peer 47.52.75.204 (outbound) for 24h0m0s
2019-03-13 01:31:09.846 [INF] SRVR: Banned peer 47.52.75.204 (outbound) for 24h0m0s
2019-03-13 01:31:09.846 [INF] BMGR: Syncing to block height 126366 from peer 47.52.75.204:14008
2019-03-13 01:31:09.846 [INF] BMGR: New valid peer 47.52.75.204:14008 (outbound) (/hcwire:0.3.0/hcd:2.0.3/)
2019-03-13 01:31:09.846 [INF] BMGR: Lost peer 47.52.75.204:14008 (outbound)
2019-03-13 01:31:09.847 [INF] BMGR: Syncing to block height 126366 from peer 47.52.75.204:14008
2019-03-13 01:31:09.847 [INF] BMGR: Lost peer 47.52.75.204:14008 (outbound)
2019-03-13 01:31:09.847 [WRN] BMGR: No sync peer candidates available
2019-03-13 01:31:09.848 [INF] BMGR: New valid peer 47.52.255.14:14008 (outbound) (/hcwire:0.3.0/hcd:2.0.3/)
2019-03-13 01:31:09.848 [WRN] BMGR: No sync peer candidates available
2019-03-13 01:31:09.848 [WRN] PEER: too old version peer 47.52.255.14:14008 (outbound)
2019-03-13 01:31:09.848 [INF] BMGR: Lost peer 47.52.255.14:14008 (outbound)
2019-03-13 01:31:09.848 [INF] SRVR: Banned peer 47.52.255.14 (outbound) for 24h0m0s
2019-03-13 01:31:09.849 [WRN] PEER: too old version peer 47.52.255.14:14008 (outbound)
2019-03-13 01:31:09.849 [INF] BMGR: New valid peer 47.52.255.14:14008 (outbound) (/hcwire:0.3.0/hcd:2.0.3/)
2019-03-13 01:31:09.849 [WRN] BMGR: No sync peer candidates available
2019-03-13 01:31:09.849 [INF] BMGR: New valid peer 47.52.255.14:14008 (outbound) (/hcwire:0.3.0/hcd:2.0.3/)
2019-03-13 01:31:09.849 [INF] SRVR: Banned peer 47.52.255.14 (outbound) for 24h0m0s
2019-03-13 01:31:09.849 [WRN] BMGR: No sync peer candidates available
2019-03-13 01:31:09.849 [INF] BMGR: Lost peer 47.52.255.14:14008 (outbound)
2019-03-13 01:31:09.849 [WRN] PEER: too old version peer 47.52.255.14:14008 (outbound)
2019-03-13 01:31:09.849 [INF] SRVR: Banned peer 47.52.255.14 (outbound) for 24h0m0s
2019-03-13 01:31:09.849 [INF] BMGR: Lost peer 47.52.255.14:14008 (outbound)
输入hcd后,没有反应,输入hcd -h后有出现命令,且对应配置文件也自动生成了,但是无法直接运行hcd
I'd like to sign a transaction offline, however, this seems like "importaddress" interface hasn't realized?
-32601: Method not found
{
"hash": "0000000015b53033f67183908bb63ef75250371066e0966a943ff31c881c28ea",
"confirmations": -1,
"size": 2154,
"height": 104791,
"version": 7,
"merkleroot": "794710c6ec15f754b2ec32c13b92473a06452262657ba300900f376e794e906d",
"stakeroot": "62aa7454d24229a40062c639123916e6c85f7107e7a19e9f6adc3ab2f8ff147f",
"tx": [
"fb58e23d5a59efd4c8a17f07eb91571c6c75f6fb02f0c3e6f3839f76f006679e"
],
"stx": [
"2fbc1aaff8eb676352bbbcb6ad32ca71f1e12a46201bf784dd6c0c6852f796bf",
"7b78c4580b70b5671240f6323ad4d5ff874f1f4fe90eaf6ede2d17f0da9155e8",
"8f5c70613ab399b929e4b03dcffbf1f62e62dce7e253401c594a958388a65f0e",
"b6807b22c9d0500450657f797801ae999e449246c11105daf7f3cfe3a10585e3",
"bce1a6c227fcd77264235e16958c2018c901249bbd9a6e53ed97bef4594ffb97"
],
"time": 1540807961,
"nonce": 3333833975,
"votebits": 1,
"finalstate": "cfbad570c720",
"voters": 5,
"freshstake": 0,
"revocations": 0,
"poolsize": 5772,
"bits": "1e009cc3",
"sbits": 7.68483031,
"difficulty": 1.63302684,
"extradata": "f72e000000000000600000030000000000000000000000000000000000000000",
"stakeversion": 7,
"previousblockhash": "000000733094822d81982002bf633be80a193b1b353dfda2e9a71fdea511d48f"
}
{
"hash": "0000000003439a8f590486508176393ccb963bbe96bdfec55a3f94b6f799eb36",
"confirmations": 1290,
"size": 2154,
"height": 104791,
"version": 7,
"merkleroot": "794710c6ec15f754b2ec32c13b92473a06452262657ba300900f376e794e906d",
"stakeroot": "62aa7454d24229a40062c639123916e6c85f7107e7a19e9f6adc3ab2f8ff147f",
"tx": [
"fb58e23d5a59efd4c8a17f07eb91571c6c75f6fb02f0c3e6f3839f76f006679e"
],
"stx": [
"2fbc1aaff8eb676352bbbcb6ad32ca71f1e12a46201bf784dd6c0c6852f796bf",
"7b78c4580b70b5671240f6323ad4d5ff874f1f4fe90eaf6ede2d17f0da9155e8",
"8f5c70613ab399b929e4b03dcffbf1f62e62dce7e253401c594a958388a65f0e",
"b6807b22c9d0500450657f797801ae999e449246c11105daf7f3cfe3a10585e3",
"bce1a6c227fcd77264235e16958c2018c901249bbd9a6e53ed97bef4594ffb97"
],
"time": 1540807961,
"nonce": 1970367132,
"votebits": 1,
"finalstate": "cfbad570c720",
"voters": 5,
"freshstake": 0,
"revocations": 0,
"poolsize": 5772,
"bits": "1e009cc3",
"sbits": 7.68483031,
"difficulty": 1.63302684,
"extradata": "9c23000000000000600000030000000000000000000000000000000000000000",
"stakeversion": 7,
"previousblockhash": "000000733094822d81982002bf633be80a193b1b353dfda2e9a71fdea511d48f",
"nextblockhash": "00000060591c5aa5f4792d9a947cdaeb3a24ebf64c31554ea0115bf268cd0ecd"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.