Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user is not exist in the userManager contract 审核人不是有效用户,审核失败 #45

Open
luoyele opened this issue Jun 16, 2021 · 0 comments

Comments

@luoyele
Copy link

luoyele commented Jun 16, 2021

ctool cnsInvoke --cns "__sys_UserRegister" --func 'approve("0x93752e109585558f517f3fbf3502f08ca38f4d16",2)' --abi ../conf/contracts/userRegister.cpp.abi.json --config ../conf/ctool.json

16:37:21.835|core/vm/logger.go:289] user is not exist in the userManager contract
审核人不是有效用户,审核失败
RoutineID=70

./platonectl.sh one
auto: true
root node datadir: /home/alan/platone-node/data/node-0

###########################################

Setup the genesis.json of a chain

###########################################

[INFO]: auto skip compile sys contract, Use existing
[INFO]: auto create node key, and create genesis.json
node's address: 4d515d38fcab2562bc5a56f8cafa1f6c1b555fe2
node's private key: 13d297ce67e63197450bf8cf54f7f45e6bdbdf32d8d4d3318e1762b6b15ffc4c
node's public key: 6cfa1fff8a2d731eedd2cd29a6d757e66beef965c896b0cf2c37f1f6a6ebd5928f38e157dfb350eee11b3cb65fd59196e58b501afad194fdae0365f085a0b811
Create node key succ. Files: /home/alan/platone-node/data/node-0/node.address, /home/alan/platone-node/data/node-0/node.prikey, /home/alan/platone-node/data/node-0/node.pubkey

[Create genesis]
[INFO]: Create genesis succ. File: /home/alan/platone-node/conf/genesis.json
auto true
datadir: /home/alan/platone-node/data/node-0

###########################################

Init a node

###########################################

datadir: /home/alan/platone-node/data/node-0
[INFO]: auto setup node dir
INFO [06-16|15:29:47.135] Maximum peer count ETH=50 LES=0 total=50 RoutineID=1
INFO [06-16|15:29:47.136] Allocated cache and file handles database=/home/alan/platone-node/data/node-0/platone/chaindata cache=16 handles=16 RoutineID=1
Fatal: Failed to open database: resource temporarily unavailable
datadir: /home/alan/platone-node/data/node-0
node.ip: 127.0.0.1
node.rpc: 6791
node.p2p: 16791
node.ws_port: 26791
logdir: /home/alan/platone-node/data/node-0/logs

###########################################

Start a node

###########################################

nohup /home/alan/platone-node/bin/platone --identity platone --datadir /home/alan/platone-node/data/node-0 --nodiscover --port 16791 --nodekey /home/alan/platone-node/data/node-0/node.prikey --rpc --rpcaddr 0.0.0.0 --rpcport 6791 --rpcapi db,eth,net,web3,admin,personal,txpool,istanbul --rpccorsdomain "" --ws --wsaddr 0.0.0.0 --wsport 26791 --wsorigins "" --wasmlog /home/alan/platone-node/data/node-0/logs/wasm_log --wasmlogsize 67108864 --ipcpath /home/alan/platone-node/data/node-0/node-0.ipc --bootnodes enode://6cfa1fff8a2d731eedd2cd29a6d757e66beef965c896b0cf2c37f1f6a6ebd5928f38e157dfb350eee11b3cb65fd59196e58b501afad194fdae0365f085a0b811@127.0.0.1:16791 --moduleLogParams '{"platone_log": ["/"], "dir": ["/home/alan/platone-node/data/node-0/logs"], "size": ["67108864"]}' --gcmode archive --debug 1>/dev/null 2>/home/alan/platone-node/data/node-0/logs/platone_error.log &

node.ip: 127.0.0.1
node.rpc: 6791
node.p2p: 16791
[INFO] An account will be created. If auto=true is set, the default password is 0
[INFO]: auto use default password 0 to create the account
127.0.0.1:6791
--output{"jsonrpc":"2.0","id":1,"result":"0x0b7f9c89b581ef52124e427ddbbb9fc1bd25a399"} --output
New account: 0x0b7f9c89b581ef52124e427ddbbb9fc1bd25a399
passphrase: 0
{"jsonrpc":"2.0","method":"personal_unlockAccount","params":["0x0b7f9c89b581ef52124e427ddbbb9fc1bd25a399","0",0],"id":1}
{"jsonrpc":"2.0","id":1,"result":true}
[INFO] to create ctool.json
127.0.0.1:6791
0b7f9c89b581ef52124e427ddbbb9fc1bd25a399
[INFO]: Create ctool.json succ. File: /home/alan/platone-node/conf/ctool.json

[INFO]: ******* to deploy system contract cnsManager ******

trasactionhash:0xe2ffdac0be3f7937d4289da5e563c36ef13fcc17c8cd498b7c4fdbb3daaca7c6
contractaddress:0xc576ece54fc4bf8aae81515957ae047f987674f8
[INFO]: cnsManager deployed succ. Address: 0xc576ece54fc4bf8aae81515957ae047f987674f8

[INFO]: ******* to deploy system contract paramManager ******

trasactionhash:0x6087e97d584364df36650f74c7fce8e3964fa8b32745858398f5f755ea73145a
contractaddress:0x0709ae575f764475d2d71bc36ae227b42d66f3e7
[INFO]: paramManager deployed succ. Address: 0x0709ae575f764475d2d71bc36ae227b42d66f3e7

[INFO]: ******* to deploy system contract userManager ******

trasactionhash:0x09d71734a5597e09c952f0fe1f948bb2731ef604298c28a44475630c751f44c8
contractaddress:0xd3993659a64c22ab8c79fb5b5323bffc8869f7b1
[INFO]: userManager deployed succ. Address: 0xd3993659a64c22ab8c79fb5b5323bffc8869f7b1

[INFO]: ******* to deploy system contract userRegister ******

trasactionhash:0x7ed66c52a9246e5ffdddb3b59ed3c6870a148ef0f95105dc33285d2c9b6d294a
contractaddress:0xbc66a6aa9860d965549b0bdb0226b9a7c435ece9
[INFO]: userRegister deployed succ. Address: 0xbc66a6aa9860d965549b0bdb0226b9a7c435ece9

[INFO]: ******* to deploy system contract roleManager ******

trasactionhash:0x66c04af9f4a66a22506895a59badb6b466b50a7eda60366eedbe806a8e266e4a
contractaddress:0x3a102e0f6409117be5018e934d479bb5d85c27a9
[INFO]: roleManager deployed succ. Address: 0x3a102e0f6409117be5018e934d479bb5d85c27a9

[INFO]: ******* to deploy system contract roleRegister ******

trasactionhash:0x90299340061dbda34d5c0b34fdde2a45880355250d333bab91e0fdb32a343a69
contractaddress:0x791976f51076b94d2ef833385ae335a67c40a68f
[INFO]: roleRegister deployed succ. Address: 0x791976f51076b94d2ef833385ae335a67c40a68f

[INFO]: ******* to deploy system contract nodeManager ******

trasactionhash:0x6946ccc8833fb74580fd074d4ae95b1d93d387ce65024ca9258daf6210dd9c60
contractaddress:0xc4d8f05ba09a0b994561976fdd3259c8ab5da025
[INFO]: nodeManager deployed succ. Address: 0xc4d8f05ba09a0b994561976fdd3259c8ab5da025
[INFO]: =========================add first node id: 0 to sys contract==========================
nodeid: 0
NODE_DIR: /home/alan/platone-node/data/node-0
node.ip: 127.0.0.1
node.rpc: 6791
node.p2p: 16791
node's public key: 6cfa1fff8a2d731eedd2cd29a6d757e66beef965c896b0cf2c37f1f6a6ebd5928f38e157dfb350eee11b3cb65fd59196e58b501afad194fdae0365f085a0b811
account: d765a71544fe1ccae3973dc224ce04c2c2e1877d
/home/alan/platone-node/scripts/add-node.sh: line 199: warning: command substitution: ignored null byte in input
[INFO]: nodeManager's address: 0xfd8543ef7fbe59a9a5739e84566008f4b79c0427

request json data: [{"from":"0x0b7f9c89b581ef52124e427ddbbb9fc1bd25a399","to":"0xfd8543ef7fbe59a9a5739e84566008f4b79c0427","gas":"0x0","gasPrice":"0x0","value":"","data":"0xf9014f88000000000000000283616464b9013f7b226e616d65223a2230222c2274797065223a302c227075626c69634b6579223a223663666131666666386132643733316565646432636432396136643735376536366265656639363563383936623063663263333766316636613665626435393238663338653135376466623335306565653131623363623635666435393139366535386235303161666164313934666461653033363566303835613062383131222c2264657363223a22222c2265787465726e616c4950223a223132372e302e302e31222c22696e7465726e616c4950223a223132372e302e302e31222c22727063506f7274223a363739312c22703270506f7274223a31363739312c226f776e6572223a22307864373635613731353434666531636361653339373364633232346365303463326332653138373764222c22737461747573223a317d","txType":2}]

response json: {"jsonrpc":"2.0","id":1,"result":"0xc3d411bf9a9c4f3777d04c35049e0ab5aa4afb185e724c058d7fcf1cb35bbf7c"}

trasaction hash: 0xc3d411bf9a9c4f3777d04c35049e0ab5aa4afb185e724c058d7fcf1cb35bbf7c

request json data: [{"from":"0x0b7f9c89b581ef52124e427ddbbb9fc1bd25a399","to":"0xfd8543ef7fbe59a9a5739e84566008f4b79c0427","gas":"0x0","gasPrice":"0x0","value":"","data":"0xd58800000000000000028b676574416c6c4e6f646573","txType":2},"latest"]

response json: {"jsonrpc":"2.0","id":1,"result":"0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001637b22636f6465223a302c226d7367223a2273756363657373222c2264617461223a5b7b226e616d65223a2230222c22737461747573223a312c227075626c69634b6579223a223632323536666462303235393337653264643635623139356335373238653766646438336235363530363033373235366631616464663764306537306265306332646331646339663334656334353465356461303932646630353933636361633739303765373665343261333538353335386434613333333038306564363330222c2264657363223a22222c2265787465726e616c4950223a223132372e302e302e31222c22696e7465726e616c4950223a223132372e302e302e31222c22727063506f7274223a363739312c22703270506f7274223a31363739312c226f776e6572223a22307864373635613731353434666531636361653339373364633232346365303463326332653138373764222c2274797065223a317d5d7d0000000000000000000000000000000000000000000000000000000000"}

result: {"code":0,"msg":"success","data":[{"name":"0","status":1,"publicKey":"62256fdb025937e2dd65b195c5728e7fdd83b56506037256f1addf7d0e70be0c2dc1dc9f34ec454e5da092df0593ccac7907e76e42a3585358d4a333080ed630","desc":"","externalIP":"127.0.0.1","internalIP":"127.0.0.1","rpcPort":6791,"p2pPort":16791,"owner":"0xd765a71544fe1ccae3973dc224ce04c2c2e1877d","type":1}]}
[INFO]: ========================= update first node id: 0 to consensus node ==========================
nodeid: 0
NODE_DIR: /home/alan/platone-node/data/node-0
node's public key: 6cfa1fff8a2d731eedd2cd29a6d757e66beef965c896b0cf2c37f1f6a6ebd5928f38e157dfb350eee11b3cb65fd59196e58b501afad194fdae0365f085a0b811
./update_to_consensus_node.sh: line 93: warning: command substitution: ignored null byte in input
nodeManager's address: 0xfd8543ef7fbe59a9a5739e84566008f4b79c0427

request json data: [{"from":"0x0b7f9c89b581ef52124e427ddbbb9fc1bd25a399","to":"0xfd8543ef7fbe59a9a5739e84566008f4b79c0427","gas":"0x0","gasPrice":"0x0","value":"","data":"0xdc88000000000000000286757064617465308a7b2274797065223a317d","txType":2}]

response json: {"jsonrpc":"2.0","id":1,"result":"0x8345bad4ea1865805d16c571f0c81d941b81cec7316e4708079b870cba191b77"}

trasaction hash: 0x8345bad4ea1865805d16c571f0c81d941b81cec7316e4708079b870cba191b77

request json data: [{"from":"0x0b7f9c89b581ef52124e427ddbbb9fc1bd25a399","to":"0xfd8543ef7fbe59a9a5739e84566008f4b79c0427","gas":"0x0","gasPrice":"0x0","value":"","data":"0xd58800000000000000028b676574416c6c4e6f646573","txType":2},"latest"]

response json: {"jsonrpc":"2.0","id":1,"result":"0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001637b22636f6465223a302c226d7367223a2273756363657373222c2264617461223a5b7b226e616d65223a2230222c22737461747573223a312c227075626c69634b6579223a223632323536666462303235393337653264643635623139356335373238653766646438336235363530363033373235366631616464663764306537306265306332646331646339663334656334353465356461303932646630353933636361633739303765373665343261333538353335386434613333333038306564363330222c2264657363223a22222c2265787465726e616c4950223a223132372e302e302e31222c22696e7465726e616c4950223a223132372e302e302e31222c22727063506f7274223a363739312c22703270506f7274223a31363739312c226f776e6572223a22307864373635613731353434666531636361653339373364633232346365303463326332653138373764222c2274797065223a317d5d7d0000000000000000000000000000000000000000000000000000000000"}

result: {"code":0,"msg":"success","data":[{"name":"0","status":1,"publicKey":"62256fdb025937e2dd65b195c5728e7fdd83b56506037256f1addf7d0e70be0c2dc1dc9f34ec454e5da092df0593ccac7907e76e42a3585358d4a333080ed630","desc":"","externalIP":"127.0.0.1","internalIP":"127.0.0.1","rpcPort":6791,"p2pPort":16791,"owner":"0xd765a71544fe1ccae3973dc224ce04c2c2e1877d","type":1}]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant