Open Ilia-TheNetworkFirm opened 4 years ago
Hello, @ilia-altoros
Which version of bnbcli
did you use?
I tested with v0.8.0
bnbcli api-server --chain-id "Binance-Chain-Tigris" --node tcp://dataseed1.binance.org:80 --laddr tcp://127.0.0.1:8080 --trust-node
and get the following result:
{"address":"bnb100dxzy02a6k7vysc5g4kk4fqamr7jhjg4m83l0","balance":{"symbol":"TUSDB-888","free":"547966269615343","locked":"0","frozen":"5004161884907847"}}
We are running cli with the following command:
/home/ec2-user/node-binary/cli/prod/0.8.0-hotfix/linux/bnbcli api-server --chain-id "Binance-Chain-Tigris" --trust-node --node tcp://localhost:27147 --laddr tcp://0.0.0.0:8080
When running bnbcli api-server --chain-id "Binance-Chain-Tigris" --node tcp://dataseed1.binance.org:80 --laddr tcp://127.0.0.1:8080 --trust-node
we got the same result as you.
The only difference is in the node used as API server backend. It seems that for some reason our node is seeing different data than yours. Could you please me identify the issue, please? @huangsuyu
@ArseniiPetrovich may i ask what did you get from abci-query
or query balance with bnbcli account bnb100dxzy02a6k7vysc5g4kk4fqamr7jhjg4m83l0
to your local node?
curl 'tcp://localhost:27147/abci_query?path="/account/bnb100dxzy02a6k7vysc5g4kk4fqamr7jhjg4m83l0"'
Hey, @huangsuyu. Sure. Your query returns the following:
{
"jsonrpc": "2.0",
"id": "",
"result": {
"response": {
"value": "S9xMJwrbAQoUe9phEerureYSGKIra1Ug7sfpXkgSCgoDQk5CEJzi1V4SDwoHRVRILTFDORCuvbiFCBIOCgdTTFYtOTg2EIDC1y8SEwoJVEFVREItODg4EICJqabCqQsSEwoJVENBREItODg4EIDA9MGYrwsSEwoJVEdCUEItODg4EMDP1vPmxQQSEwoJVEhLREItODg4EICA6YOx3hYSEwoJVFVTREItODg4EPbY28fY9XYaJuta6YchAqdAcbTKttD0PH3i2ffzbRtmip+ttEdaBhzKPwgNndg6IJnuBSiKAxoTCglUQVVEQi04ODgQgIDm+766BRoTCglUQ0FEQi04ODgQgIDE0tTRAxoTCglUR0JQQi04ODgQgLCdrfH9DRoTCglUSEtEQi04ODgQgIC7i5ObRBoUCglUVVNEQi04ODgQx9Kx3KPo8Qg="
}
}
}
@huangsuyu Is there any updates on this issue?
@huangsuyu Is there any updates on this issue?
Can you query your fullnode with rpc method? like this SDK function: https://github.com/binance-chain/go-sdk/blob/fdeeb97ecf528a110393c710f14a2274eaa4c5ac/client/rpc/dex_client.go#L228
If there is still an issue with consistency, we ca investigate more.
Hi @huangsuyu, I'm not familiar with go but I did some queries from javascript-sdk
Here my code:
const { rpc } = require('@binance-chain/javascript-sdk');
(async () => {
const rpcClient = new rpc(
'localhost:27147'
);
try {
const balance = await rpcClient.getBalance(
'bnb100dxzy02a6k7vysc5g4kk4fqamr7jhjg4m83l0',
'TUSDB-888'
);
console.info(balance);
} catch (e) {
console.error(e);
}
})();
The result is undefined
I tried to use RPC URL https://dataseed1.binance.org:443
the result is the same - undefined
Hey, guys recently we've fully synchronized our nodes and started receiving different balances from our node and dex.binance.
For example: Request to our node
/api/v1/balances/bnb100dxzy02a6k7vysc5g4kk4fqamr7jhjg4m83l0/TUSDB-888
returns
Request to dex.binance.org/api/v1/account/bnb100dxzy02a6k7vysc5g4kk4fqamr7jhjg4m83l0
for TUSDB-888 from 'balances' field
returns
The difference is in the
free
fieldHere is node status:
config.toml and app.toml