Giter Site home page Giter Site logo

nuls-io / nuls-v2 Goto Github PK

View Code? Open in Web Editor NEW
116.0 20.0 54.0 43.26 MB

NULS2.0 Node Wallet Implemented in Java

Home Page: https://nuls.io

License: MIT License

Java 99.42% Shell 0.49% Batchfile 0.06% Go 0.03% Dockerfile 0.01%
chainbox nuls nuls-blockchain

nuls-v2's Introduction

NULS2.0 Node Wallet Implemented in Java

NULS v2 is the main running program of NULS 2.0 nodes. It contains 3 microservice modules:

Getting Started

Start a NULS node according to this boot.

Download Release

Download URL: RELEASES

Running NULS2.0

Bootstrap

Execute the following command:

./start

Check Status

It takes a certain amount of time to start. You can get the startup status with the following command:

./check-status

Note: The command will automatically end when all modules are started.

Executables

Command Command
start Start the program and start all NULS modules one after another.
shutdown Stop the program and stop all NULS modules one after another.
check-status Check the running status of all modules; stop screen output when all modules are successfully started

Docker Quick Start

Stay tuned. Join Discord to find out.

Explorer

Explorer URL: https://nulscan.io/

ChainBox Tutorial

Please check the following documents:

https://docs.nuls.io/NULS2.0/chainBoxGuide.html

Modules Description

Please check the following documents:

https://docs.nuls.io/Docs/c_module.html

Note: Some documents are in the process of being updated, so please understand if there are some inconsistencies.

Contribute to NULS2.0

Click Star and Fork to start contributing improvements to NULS v2. Hope more contributors can submit improvement suggestions and bug reports here. Issues: https://github.com/nuls-io/nuls-v2/issues

Welcome to NULS!

NULS — Making It Easier To Innovate

Introduction

NULS is a blockchain infrastructure that provides customizable services and is also a global open-source community blockchain project. NULS adopts micro-services to achieve a highly modular underlying architecture, using smart contracts and cross-chain technologies, combined with the ability of ChainBox to quickly build chains, reduce development costs, and accelerate blockchain business application landing.

Contribute to NULS

We are committed to making blockchain technology simpler and our slogan is "NULS Making It Easier to Innovate".

Get to know NULS developers https://nuls.io/developer

You are welcome to contribute to NULS! We sincerely invite developers with rich experience in the blockchain field to join the NULS technology community. https://nuls.io/community

Documentation:https://docs.nuls.io

NULS Brand Assets: https://nuls.io/brand-assets

License

NULS is released under the MIT license. Modules added in the future may be release under different license, will specified in the module library path.

Community

nuls-v2's People

Contributors

ad19900913 avatar cqbeer avatar daviyang35 avatar dependabot[bot] avatar edwardchenxue avatar hanyh2004 avatar jasonchou82111 avatar jideas avatar lanjinsheng avatar lichao23 avatar lijunzhou avatar mimieyes avatar mogely avatar naveen7252 avatar nicholas-macleod avatar niels1286 avatar nmschorr avatar nulsccc avatar qinyifeng1226 avatar reagost avatar tag0313 avatar tangyi0304 avatar wangko27 avatar yeealbert avatar zhouwei1985 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nuls-v2's Issues

cmd.sh is not starting

On a fresh install cmd.sh is not starting properly

Sometimes it hangs with the message

waiting nuls-wallet base module ready

stopping cmd.sh with CTRL-C and restaring gives again this message or an error

2019-04-16 15:24:01.277  [main] ERROR - io.nuls.rpc.modulebootstrap.RpcModule.run(RpcModule.java:196):io.nuls.rpc.modulebootstrap.Module@f852cdb5 initServer failed
java.lang.Exception: 向核心注册失败!at io.nuls.rpc.netty.processor.ResponseMessageProcessor.syncKernel(ResponseMessageProcessor.java:150) at io.nuls.rpc.modulebootstrap.RpcModule.run(RpcModule.java:186)
at io.nuls.rpc.modulebootstrap.NulsRpcModuleBootstrap.run(NulsRpcModuleBootstrap.java:87)
at io.nuls.cmd.client.CmdClientBootstrap.main(CmdClientBootstrap.java:32)

It works eventually after a repeated
wallet stop and start from a fresh install

Cmd client prints "baglance" instead of "balance"

The chainbox cmd cli tool prints "baglance" instead of "balance". I believe the offending word can be found in:
nuls-cmd-client/src/main/java/io/nuls/cmd/client/processor/account/GetAccountProcessor.java

on or near line 105 in the chainbox branch:
res.put("baglance",balanceMap);

Example:

nuls>>> getaccount tNULSeBaMjiyLX3aPdq9oanVhfFb9hp114YEgX { ... "alias" : null, "baglance" : { "available" : "51966.45677167", "total" : "251966.45677167", "freeze" : "200000"

Steps to Reproduce:
0) Launch the chainbox cmd cli tool in shell

  1. Enter: getaccount
    Result: "baglance" is displayed.

当链上的链接钱包数为1时,持续出块

版本:alpha1
严重程度:严重
优先级:1
操作步骤:搭建一条链,正常出块,然后停掉除一个种子节点外的所有钱包
实际结果:那一个种子节点持续出块
期望结果:停止出块
@tag0313

start.sh、cmd.sh文件头中关于执行环境的声明不统一

版本:NULS2.0 Alpha1
严重程度:一般
优先级:3
操作步骤:
1、通过docker运行NULS2.0,docker容器的Linux版本为18.04.2 LTS
2、执行start.sh成功
3、执行cmd.sh失败
实际结果:
1、执行cmd.sh时提示 [[: not found
预期结果:
2、执行cmd.sh应该进行cmd命令窗口
原因分析:
cmd.sh文件中#!/bin/sh 在某些环境下不支持[[: 这种语法,可以保持与start.sh一致采用#!/bin/bash

无法启动钱包的命令行程序

启动钱包的命令行程序。

下载了linux的钱包,按照介绍解压启动,但总是失败,报告“waiting nuls-wallet base module ready timeout ”。
版本:beta1和beta3.1都试过了

步骤:

  1. tar -zxf NULS_Wallet_beta3.1-main-linux.tar.gz
  2. cd NULS_Wallet_beta3.1
  3. ./start
  4. ./cmd

错误结果:
java version "11.0.2" 2019-01-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)

/home/work/nuls/NULS_Wallet_beta3.1/nuls.ncf
Service Manager URL: ws://127.0.0.1:7771


/ \ / / | / / | / \ / \ / / | / |
$$ \ $$ $$ | $$ $$ | /$$$$$$ | /$$$$$$ | /$$$$$$ $$ | $$$$$$/
$$$ $$ $$ | $$ $$ | $$ _$$/ $$$$ | $$ | $$/$$ | $$ |
$$$$ $$ $$ | $$ $$ | $$ \ / $$/ $$ | $$ | $$ |
$$ $$ $$ $$ | $$ $$ | $$$$$$ | /$$$$$$/ $$ | __$$ | $$ |
$$ |$$$$ $$ _
$$ $$ |_____/ _
$$ | $$ |_____ $$ _
/ $$ |_____ $$ |
$$ | $$$ $$ $$/$$ $$ $$/ $$ | $$ $$/$$ / $$ |
$$/ $$/ $$$$$$/ $$$$$$$$/ $$$$$$/ $$$$$$$$/ $$$$$$/ $$$$$$$$/$$$$$$/

Module:cmd-client

waiting nuls-wallet base module ready
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 602019-08-26 10:41:20,310 ERROR [] - io.nuls.cmd.client.CmdClientModule.lambda$doStart$0(CmdClientModule.java:69):waiting nuls-wallet base module ready timeout

Chainbox web-wallet and explorer — grizzly error when invoked.

Chainbox web-wallet and explorer — grizzly error when invoked.
Screen Shot 2020-06-03 at 10 18 06 PM
I followed the README directions in web-ui for both the nuls-module-web-wallet and nuls-module-explorer and after building the chain using :”./tools -p nuls-module-web-wallet/ nuls-module-explorer/“ the wallet/explorer failed with a grizzly error (see included screen shot). Also, I tried “npm install” and after building the chain I still got the grizzly error.

I am happy to recreate the problem for you. Thank you!

Note, this is the commands I used to build the chain:

git clone https://github.com/nuls-io/nuls-chainbox.git chainbox
cd chainbox/
./tools -t nuls-module-web-wallet
./tools -t nuls-module-explorer
cd nuls-module-web-wallet/
./package
cd ..
cd nuls-module-explorer/
./package
cd ..
./tools -a smart-contract
./tools -a public-service
./tools -a nuls-api
./tools -s
./tools -p nuls-module-web-wallet/ nuls-module-explorer/

rpc服务无法启动

nuls.ncf配置文件里rpc服务端口为8003,脚本./start启动后,只有8001端口有服务,8003、8004均无服务

委托节点:deposit命令对共识节点进行委托,委托金额小于2000或大于500000返回了委托交易hash

版本:NULS2.0Alpha1
严重程度:严重
优先级:2
操作步骤:
1、对已存在的共识节点进行委托,委托金额小于2000或大于500000
2、通过gettx命令查询委托交易的hash
实际结果:
1、提示输入委托地址密码
2、查询交易返回null
预期结果:
1、提示委托金额小于2000或大于500000,不能进行下一步
附件:
image
image

取消委托后再次委托失败,账本模块查询余额不足

严重程度:严重
优先级:2
操作步骤:
1、新建一个地址作为节点地址
2、从创世块地址转账25000100000000给新创建的地址
3、节点委托20000000000000
4、委托成功后过一分钟,将委托取消
5、取消委托成功后,再次委托
实际结果:
1、委托失败
预期结果:
1、委托成功
分析:
根据日志及调试,发现共识模块再次发起委托交易时,交易模块返回失败,再往下,交易模块在调用账本模块的提交未确认交易时,账本模块验证时,余额不足,但是通过单独的单元测试返回余额为22999999600000,是大于委托最小金额的
depositAgainError.txt
depositAgainError_leger.txt
depositAgainError_tx.txt
@lanjinsheng

Transaction tx validator fail -type 16

This jsonrpc request to http://78.47.206.255:18004/jsonrpc:

the request:

POST 'http://78.47.206.255:18004/jsonrpc'
--header 'Content-Type: application/json;charset=UTF-8'
--data-raw '{"jsonrpc":"2.0","method":"contractCall",
"params":[24442, "TTSETeCA3FWQ3Y32TCFEwJvzqGbxiXNxtkzPb3z"
, "nuls123456",7066, 13198, 74600000, "TTSETeCA3FueL9cKCiDR8vAiRiGVtVCJksEsstM", "writeReview", "(String productId, String reviewComments) return LReviewContract$Review;", ["swimsuits","too large"], "my remark"], "id":1234}'

(sent using Postman)

almost works then stops here:

2020-02-19 16:32:05,980 ERROR [server-handler-request-4] - io.nuls.transaction.service.impl.TxServiceImpl.verify(TxServiceImpl.java:254):tx validator fail -type:16, -hash:80238237ccd4d4f7fa5769378585ffbc42c4fdb2e725d66d02e484ba688958bb
2020-02-19 16:32:05,980 ERROR [server-handler-request-4] - io.nuls.transaction.service.impl.TxServiceImpl.newTx(TxServiceImpl.java:163):verify failed: type:16 - txhash:80238237ccd4d4f7fa5769378585ffbc42c4fdb2e725d66d02e484ba688958bb, code:sc_0102
2020-02-19 16:32:05,980 ERROR [server-handler-request-4] - io.nuls.core.log.logback.NulsLogger.error(NulsLogger.java:210):NulsException -code: [sc_0102], -msg: null
io.nuls.core.exception.NulsException: null
at io.nuls.transaction.service.impl.TxServiceImpl.newTx(TxServiceImpl.java:165)
at io.nuls.transaction.rpc.cmd.TransactionCmd.newTx(TransactionCmd.java:119)
at jdk.internal.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at io.nuls.core.rpc.netty.processor.RequestMessageProcessor.invoke(RequestMessageProcessor.java:519)
at io.nuls.core.rpc.netty.processor.RequestMessageProcessor.execute(RequestMessageProcessor.java:288)
at io.nuls.core.rpc.netty.processor.RequestMessageProcessor.callCommandsWithPeriod(RequestMessageProcessor.java:208)
at io.nuls.core.rpc.netty.handler.message.TextMessageHandler.handler(TextMessageHandler.java:116)
at io.nuls.core.rpc.netty.handler.message.TextMessageHandler.run(TextMessageHandler.java:76)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2020-02-19 16:32:08,004 INFO [server-handler-request-4] -

This is for the Portland U. project and is somewhat urgent.

chainbox install does not work -- block and consensus modules fail to become "READY"

chainboxlogs.tar.gz

chainbox install does not work. See attached logs.
ran the following commands:
git clone https://github.com/nuls-io/nuls-chainbox.git chaintest1
./tools -p
cd NULS_Wallet
./start-dev

block and consensus does not become “READY”
======================READY MODULE==================
account STATE IS READY
block STATE NOT READY
consensus STATE NOT READY
ledger STATE IS READY
network STATE IS READY
transaction STATE IS READY
================TRY RUNNING MODULE==================

Here is the block log:

2020-05-17 00:11:41,538 ERROR [main] - io.nuls.block.service.impl.BlockServiceImpl.initLocalBlocks(BlockServiceImpl.java:650)::NulsRuntimeException -code: [bl_0007], -msg: Transactions rollback error
io.nuls.core.exception.NulsRuntimeException: Transactions rollback error
at io.nuls.block.service.impl.BlockServiceImpl.saveBlock(BlockServiceImpl.java:333)
at io.nuls.block.service.impl.BlockServiceImpl.initLocalBlocks(BlockServiceImpl.java:627)
at io.nuls.block.service.impl.BlockServiceImpl.init(BlockServiceImpl.java:658)
at io.nuls.block.manager.ChainManager.runChain(ChainManager.java:79)
at io.nuls.block.BlockBootstrap.doStart(BlockBootstrap.java:126)
at io.nuls.core.rpc.modulebootstrap.RpcModule.run(RpcModule.java:238)
at io.nuls.core.rpc.modulebootstrap.NulsRpcModuleBootstrap.run(NulsRpcModuleBootstrap.java:81)
at io.nuls.block.BlockBootstrap.main(BlockBootstrap.java:58)
2020-05-17 00:11:51,888 ERROR [main] - io.nuls.block.service.impl.BlockServiceImpl.initLocalBlocks(BlockServiceImpl.java:650)::NulsRuntimeException -code: [bl_0007], -msg: Transactions rollback error

Here is transaction log:

2020-05-17 00:11:41,510 ERROR [server-handler-request-4] - io.nuls.transaction.service.impl.ConfirmedTxServiceImpl.commitLedger(ConfirmedTxServiceImpl.java:227):save block tx failed! commitLedger
2020-05-17 00:11:41,523 INFO [server-handler-request-5] - io.nuls.transaction.service.impl.ConfirmedTxServiceImpl.rollbackTxList(ConfirmedTxServiceImpl.java:297):start rollbackTxList block height:0
2020-05-17 00:11:41,527 ERROR [server-handler-request-5] - io.nuls.transaction.service.impl.ConfirmedTxServiceImpl.rollbackTxList(ConfirmedTxServiceImpl.java:327):[rollback error] block txs is empty . -hight:0
2020-05-17 00:11:51,876 ERROR [server-handler-request-8] - io.nuls.transaction.service.impl.ConfirmedTxServiceImpl.commitLedger(ConfirmedTxServiceImpl.java:227):save block tx failed! commitLedger
2020-05-17 00:11:51,883 INFO [server-handler-request] - io.nuls.transaction.service.impl.ConfirmedTxServiceImpl.rollbackTxList(ConfirmedTxServiceImpl.java:297):start rollbackTxList block height:0
2020-05-17 00:11:51,886 ERROR [server-handler-request] - io.nuls.transaction.service.impl.ConfirmedTxServiceImpl.rollbackTxList(ConfirmedTxServiceImpl.java:327):[rollback error] block txs is empty . -hight:0
2020-05-17 00:12:02,199 ERROR [server-handler-request-4] - io.nuls.transaction.service.impl.ConfirmedTxServiceImpl.commitLedger(ConfirmedTxServiceImpl.java:227):save block tx failed! commitLedger
2020-05-17 00:12:02,205 INFO [server-handler-request-5] - io.nuls.transaction.service.impl.ConfirmedTxServiceImpl.rollbackTxList(ConfirmedTxServiceImpl.java:297):start rollbackTxList block height:0
2020-05-17 00:12:02,207 ERROR [server-handler-request-5] - io.nuls.transaction.service.impl.ConfirmedTxServiceImpl.rollbackTxList(ConfirmedTxServiceImpl.java:327):[rollback error] block txs is empty . -hight:0
2020-05-17 00:12:12,465 ERROR [server-handler-request-8] - io.nuls.transaction.service.impl.ConfirmedTxServiceImpl.commitLedger(ConfirmedTxServiceImpl.java:227):save block tx failed! commitLedger

构建全节点(Build full node)

我在尝试构建全节点钱包,这能帮助我更好的了解NULS
通过文档,我找到了 【Window 全节点钱包 v1.2.2 / Linux 全节点钱包 v2.0 Alpha3

我遇到了一些困扰我的问题希望能得到帮助。

  1. 是否有 RPC 接口文档?

  2. Win/Linux 全节点是否支持RPC接口调用?

  3. 对于非产块全节点而言 v0.1.2v2.0 会有什么差别?

Port numbers are all changed

The port numbers in the nuls-v2/config/nuls.ncf are different than elsewhere. This is possibly causing some confusion. I can see they were introduced in early April. Specifically:
port=8001
crossPort=8002
rpcPort=8003
serverPort=8004

Take the rpcPort for example. Here are six examples of the rpcPort as '18003' in the same nuls-v2 repo:

https://github.com/nuls-io/nuls-v2/tree/master/module/nuls-public-service/readme.md
rpcPort=18003

https://github.com/nuls-io/nuls-v2/tree/master/build/default-config.ncf
rpcPort=18003

https://github.com/nuls-io/nuls-v2/tree/master/module/nuls-public-service/src/main/resources/module.json
"rpcPort": 18003,

https://github.com/nuls-io/nuls-v2/tree/master/module/nuls-public-service/src/test/java/io/nuls/api/test/MessageIntfTest.java
private static final String httpurl = "http://127.0.0.1:18003";

nuls-v2/module.ncf (https://github.com/nuls-io/nuls-v2/blob/master/module.ncf)
rpcPort=18003

https://github.com/nuls-io/nuls-v2/tree/master/module/nuls-public-service/documents/NULS2.0-Public-PRC.md
rpcPort=18003

18004:
module/nuls-api/module.ncf
build/default-config.ncf
module.ncf

The same problem is exists for 18001 and 18002.

转账:接收地址错误,提示不严谨

版本:NULS2.0Alpha1
严重程度:一般
优先级:3
操作步骤:
1、使用transfer命令进行转账,输入错误的接收地址
实际结果:
1、提示Alias is not exist
期望结果:
1、应该提示Alias or address is not exist
image

start-dev prints NULS-WALLET STARING

start-dev prints "NULS-WALLET STARING" instead of STARTING.

It looks like the misspelling is in:
build/start-mykernel
on line 148.

Steps to Reproduce: (in Chainbox):
0) bring up a shell and cd to the directory with the start-dev script

  1. type 'start-dev'
    Result: "NULS-WALLET STARING" is displayed.

This should be fixed soon because Kathy updated the Chainbox instructions and used the correct spelling.

Password for packing address should be clarified

The manual said that no password should be used for the packing address. This is not true for 2.0 anymore. The default password should be mentioned and the possibility to change it in the config.

example中./package BUILD FAILURE

Downloaded from central: https://repo.maven.apache.org/maven2/org/bouncycastle/bcprov-jdk15on/1.61/bcprov-jdk15on-1.61.jar (4.5 MB at 16 kB/s)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mail-example ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/zhouhe/blockchain/chainbox/nuls-chainbox/example/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ mail-example ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 33 source files to /Users/zhouhe/blockchain/chainbox/nuls-chainbox/example/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 08:24 min
[INFO] Finished at: 2019-08-27T15:41:24+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project mail-example: Fatal error compiling: invalid target release: 11 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
mv: rename target/mail-example.jar to /Users/zhouhe/blockchain/chainbox/nuls-chainbox/example/outer/mail-example-1.0.0.jar: No such file or directory
cp: target/libs: No such file or directory
============ PACKAGE FINISH 🍺🍺🍺🎉🎉🎉 ===============

转账一定时间后,查询余额偶尔为0

严重程度:严重
优先级:3
操作步骤:
1、新建一个地址作为节点地址
2、从创世块地址转账25000100000000给新创建的地址
3、等待30秒后,分别调用账本接口getBalance、getBalanceNonce查询余额
实际结果:
1、两个接口返回余额都为0;
预期结果:
1、余额为25000100000000;
getBalanceIsZero
getBalanceIsZero.txt
@lanjinsheng

同步到区块高度1234298后无法继续同步

版本:NULS_Wallet_linux64_2.4.0
系统:Ubuntu 18.04.2 LTS
区块数据为从http://nuls-cn.oss-cn-hangzhou.aliyuncs.com/2.4/data-1122020.zip下载的离线数据

Logs/block/common.log里一直报如下错误:

2020-02-18 04:24:14,403 ERROR [ServerProcessor-6] - io.nuls.core.rpc.netty.processor.RequestMessageProcessor.callCommands(RequestMessageProcessor.java:271):
java.lang.reflect.InvocationTargetException: null
at jdk.internal.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at io.nuls.core.rpc.netty.processor.RequestMessageProcessor.invoke(RequestMessageProcessor.java:519)
at io.nuls.core.rpc.netty.processor.RequestMessageProcessor.callCommands(RequestMessageProcessor.java:269)
at io.nuls.core.rpc.netty.thread.RequestOnlyProcessor.run(RequestOnlyProcessor.java:36)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NullPointerException: null

cmd script has 'bin' in JAVA_HOME

The cmd script references '/bin' twice:

JAVA_HOME=dirname "./Libraries/JAVA/JRE/11.0.2/bin";
JAVA_HOME=cd $JAVA_HOME; pwd
JAVA="${JAVA_HOME}/bin/java"

so it's looking for ./Libraries/JAVA/JRE/11.0.2/bin/bin/java

Plus the JAVA dir in the Libraries directory in Chainbox isn't there. So between these two things - Chainbox won't run 'cmd'.

Workaround: Copy a 'JAVA' jre from somewhere else into the Libraries directory.

Allow methods for API

I've installed NULS WALLET 2.1, but when I try to call getBestBlock or createAccount via JSON-RPC, here's the answer:

{
  "success": false,
  "data": {
    "code": "err_0014",
    "msg": "HTTP 405 Method Not Allowed"
  }
}

May i need to change something in nuls.cnf, because i didn't find like this in documentation.

nuls2.0 alpha版本测试缺陷模板

标题:简要描述问题
严重程度:致命、严重、一般、轻微
优先级:1、2、3、4(1最高,4最低)
操作步骤:
1、..........
2、..........
3、..........
实际结果:
..........
预期结果:
..........
附件:问题截图、文档、、数据、日志等

1. broadcast tx error

When I try to broadcast,this error happens:Temporarily stop processing new
transactions Temporarily stop processing new transactions;Temporarily stop processing new transactions . nuls version NULS_Wallet_linux64_2.7.2 , os linux

Withdrawn deposit is not immediately usable

After withdrawing a deposit it's not usable either for transfering or depositing for in my case 20 Minutes despite the balance shows up as usable.

Here an example with an account with a usable balance of 52k.

nuls>>> getaccount tNULSeBaMjiyLX3aPdq9oanVhfFb9hp114YEgX { ... "alias" : null, "baglance" : { "available" : "51966.45677167", "total" : "251966.45677167", "freeze" : "200000" }, "address" : "tNULSeBaMjiyLX3aPdq9oanVhfFb9hp114YEgX", "pubkeyHex" : "03f753ecc68ca404725fc83fec9a61ee69dbe21d22e1416b63608f7d0afec01e38" }
However, it's not possible to deposit or transfer it

nuls>>> deposit tNULSeBaMjiyLX3aPdq9oanVhfFb9hp114YEgX c10eab12bf43460a4541ddd199adf41fd05351bd38d2f00cb77d6fddf988cca9 51000 Please enter the password. Enter your password:********* Failed

nuls>>> transfer tNULSeBaMjiyLX3aPdq9oanVhfFb9hp114YEgX tNULSeBaMjWuGgCGG5v7XriHBPvw2gdCFUrsiV 51000 Enter your account password********* Failed nuls>>> transfer tNULSeBaMjiyLX3aPdq9oanVhfFb9hp114YEgX tNULSeBaMjWuGgCGG5v7XriHBPvw2gdCFUrsiV 1000 Enter your account password********* Failed nuls>>>
I imported the account on another machine running Alpha 2.1. but the same errors. Blocks are synced.

ChainFactory produces incomplete SeedAddressList.txt

ChainFactory produces incomplete SeedAddressList.txt
SeedAddressList.txt

Here are the 3 actions I took:

After completing the configuration of a blockchain with 2 seeds,I was on the “Confirm the order” screen, and I returned to “Configure Seed nodes” and replaced the domain name for both seeds. (I did not delete the seeds, I simply erased and then entered new domain information.) I downloaded the SeedAddressList.txt. The Seed Address list did not contain the public or private keys! (See attached file called SeedAddressList.txt.)

I tried again. I deleted and the second seed, and erased and replaced the information for the first seed. Then, I selected “+” and created the seed entry. I added the information for the second seed. When I downloaded the SeedAddressList.txt the information for the first seed did not contain the public or private key information, and the information for the second key did. (See attached file called SeedAddressList (1).txt.)

The third time, I delete the second seed, and re-entered the data, and created a third seed and added the data. Then I deleted the first seed. The downloaded SeedAddressList contained the complete information for each seed. (See attached file called SeedAddressList (3).txt.)

SeedAddressList.txt
SeedAddressList (1).txt
SeedAddressList (3).txt

Chain Factory -- order history not listed

I purchased a blockchain, however it is not listed in my order history. Included is a screen shot of my order history (Cf-order-history.png) , and the transaction of my payment for the blockchain (CF-payment-history.png).

CF-order-history

CF-payment-history

POCM Withdraw fails with concerning and confusing message

If I invest in a project and one or two minutes later withdraw, I get the error “Contract call validation transaction error: contract error”. It I attempt to withdraw a few minutes later, it works. See attached screen shot. Please provide meaningful message instead of a message that confuses and possibly concerns the investor. I can replicate this problem if you want. Thanks.
Screen Shot 2020-06-11 at 1 16 48 AM

stopagent command is not working

The stopagent command seems not to work. The agent is still there. The agent is ned_1

nuls>>> stopagent tNULSeBaMr4pNM47akScnFUJgQTmNBhYqw6shk Enter your account password********* "042c5d16e9c0bfa915305f5bf29da05b2e77142608e1a46e2266354a39766355" nuls>>> stopagent tNULSeBaMr4pNM47akScnFUJgQTmNBhYqw6shk Enter your account password********* "723b6ae9598d2f7c91b7129616b8641e7871564c434384605bf94737adc475ef" nuls>>> stopagent tNULSeBaMr4pNM47akScnFUJgQTmNBhYqw6shk Enter your account password********* "7feb7ef16f406d580f1e60fe348e767bbccd0ada1910f60b9da8958776bf7d50" nuls>>>

check-status prints "REDAY" instead of READY

The cmd cli tool 'check-status' prints:
"==================RPC REDAY MODULE=================="
and
"======================REDAY MODULE=================="

It should say READY not REDAY.

The lines to fix I believe are in:

build/check-status

on lines 55 and 69.

Steps:
0) In any Chainbox demo bring up shell

  1. Start the chainbox with 'start-dev'
  2. run 'check-status' in the shell console
    Result: The log in the shell window prints lines with REDAY instead of READY.

This is a cosmetic bug, but when new users see it they might think we can't spellcheck.

package should provide help explanation in English

Is is important that commands and software provide READMEs and -h explanation in Chinese and English. Please provide the package "-h" output in English. My suggestion, "-h" should respond with help -h [Chinese | English]. Then, "-h Chinese" and "-h English" would provide the -h explanation in Chinese and English respectively.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.