Coder Social home page Coder Social logo

fractal's Issues

[BUG][dev] dpos too much rreversible blocks

Prerequisites:
DPOS
Test steps:
1.DPOS :After two rounds
Test results:
dpos too much rreversible blocks

Remarks:Has been corrected but not incorporated dev(take notes)

How to create a transfer transaction?

I built a transaction like this:

    "gasAssetId":0,
    "gasPrice":10000000000000000,
    "actions":[
        {
            "gasLimit":300000,
            "remark":"0xe78e8be69ca8e69ca8e5a49574657374",
            "amount":"0x1",
            "actionType":"0x205",
            "accountName":"wangmenglocal",
            "toAccountName":"wangmenghaha",
            "assetId":0,
            "nonce":1,
            "payload":"0x",
            "payloadDetailInfo":{
                "name":"payload",
                "value":"0x"
            }
        }
    ]
}

and then I signed and sent transaction, but got error "Invalid sender" , I guess it failed because wrong signature. I used FTWallet and sent transaction successfully with the same account. How can I get the signature from FTWallet? so that I can check if I did it right, or can you please tell me if I build the transfer body right?

[master/dev]Exceptionally close the node, the node can not continue to synchronize data

DEBUG[07-25|11:33:41.844] downloader statusTD x Local=53557276256 Number=19561 R=57070210640 Number=20839
DEBUG[07-25|11:33:41.844] downloader findAncestor headNumber=19561 preAncestor=0 irreversibleNumber=20306
WARN [07-25|11:33:41.844] ancestor err err="can not find ancestor after irreversibleNumber:20306" errid:=3
WARN [07-25|11:33:41.844] Disconnect because ancestor not find: station:=ecc702621e254cc2
DEBUG[07-25|11:33:41.844] multiplexDownload end
INFO [07-25|11:33:41.844] Add bad node node="&{node:0xc43029f7a0 endtime:1564025681}"
INFO [07-25|11:33:41.845] Removing p2p peer id=ecc702621e254cc2 conn=dyndial duration=3.021ms peers=10 req=false err="peer was added in the balcklist at least 1 minute"

the genesis bootnodes' ip addresses are invalid

Excuse me , there were something wrong when i set up a node. During the process of starting a node, everything was fine except a warn"genesis bootnodes prased failed"and detail information just showed "invalid IP address". So , if you were just change the ip address in he "genesis.json" and "testnet.json"? The addresses you gave in theses two documents were all unable to connect, thus I can not find any other nodes.
It will be greatly appreciated if you can reply me soon. Thx!

Debugging errors properly

You should not panic(err)

fractal/asset/asset.go

Lines 153 to 155 in 1d8e186

if err != nil {
panic(err)
}

Hey dude,

Just a friendly advice. You should not panic(err). You’d rather use a package like this for debugging your errors. Debug your code with :

  1. Clear stack trace
  2. Failing func call highlighting

example

It’s way more easier then to debug.

Real better than panic-ing (in most case). You can still force exit if you need it.

I would be happy to get your feedbacks.

when I run a Private Network, it shows ERROR

when I run a private networks as #134.
But after I runed ./build/bin/ft --genesis=./build/genesis.json --miner_start
it shows below

INFO [10-18|15:35:32.046] No config file , use default configuration. 
INFO [10-18|15:35:32.046] fractal node                             version=0.0.30+commit.v0.0.30-26-g2c95589+date.2019-10-18
INFO [10-18|15:35:32.046] Reading read genesis file                path=./build/genesis.json
WARN [10-18|15:35:32.072] genesis bootnodes parse failed           err="invalid IP address" node=fnode://9d18e8f043a1d2c06d87506cd968410a24db7cbca3c152e75a9e3850b9b737ec85da66c271ac9f703c61e5367d8922d39e145313ff7cb379d9c8d682a15f60dc@boot2.m.ft.im:30000
WARN [10-18|15:35:32.075] genesis bootnodes parse failed           err="invalid IP address" node=fnode://6629defca0f82ede9cb30d40a2ec6e8c56f51080ad49e9099eb960bed63829ee259bdec6c357d2b43ebdb621b1a54da268d35088bd9db80245936a58c299e1e6@boot3.m.ft.im:30000
INFO [10-18|15:35:32.079] Allocated cache and file handles         database=/root/.ft_ledger/ft/chaindata cache=768 handles=512
WARN [10-18|15:35:32.096] genesis bootnodes parse failed           err="invalid IP address" node=fnode://9d18e8f043a1d2c06d87506cd968410a24db7cbca3c152e75a9e3850b9b737ec85da66c271ac9f703c61e5367d8922d39e145313ff7cb379d9c8d682a15f60dc@boot2.m.ft.im:30000
WARN [10-18|15:35:32.099] genesis bootnodes parse failed           err="invalid IP address" node=fnode://6629defca0f82ede9cb30d40a2ec6e8c56f51080ad49e9099eb960bed63829ee259bdec6c357d2b43ebdb621b1a54da268d35088bd9db80245936a58c299e1e6@boot3.m.ft.im:30000
ERROR[10-18|15:35:32.102] ft start node failed.                    err="database already contains an incompatible genesis block (have fff77195a34bae2cbe56990436ef0ae4f41f1a466a1a7943f7040ecdd19eceba, new 3b7172d970b3309c11aabdfadf50a81a80649d57f4c1c47b7eb62328eb9e0f48)"

so how to solve the problem above ,thanks.

Wrong when executing `make all` under Ubuntu

~/fractal-0.0.30# make all
······
--- /tmp/gofmt022320232 2019-11-21 15:09:10.482600314 +0800
+++ /tmp/gofmt965464231 2019-11-21 15:09:10.482600314 +0800
@@ -151,7 +151,7 @@
}

accountTxs := &types.AccountTxs{
Txs: txhhpairs,
Txs: txhhpairs,
IrreversibleBlockHeight: b.ftservice.engine.CalcBFTIrreversible(),
EndHeight: uint64(lastnum),
}

Your marmot has found a problem with the formatting style of the code.
Makefile:38: recipe for target 'check' failed
make: *** [check] Error 1

How can I solve this problem?

Bugs in common.Name.IsChildren

Bug1:

1. set config.AccountNameLevel = 1
2. set name1 = "abc"
3. set name2 = "abc.1"
4. check name1.IsChildren(name2) => panic

Bug2:

1. set config.AccountNameLevel = 3
2. set name1 = "abc4567.1"
3. set name2 = "def4567.1.abc4567.1"
4. check name1.IsChildren(name2) => true

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.