Coder Social home page Coder Social logo

fractal's Introduction

Fractal

Build Status GoDoc Coverage Status GitHub

Welcome to the Fractal source code repository!

What is Fractal?

Fractal is a high-level blockchain framework that can implement the issuance, circulation, and dividends of tokens efficiently and reliably. Fractal can also steadily implement various community governance functions with voting as the core and foundation. These functions are the foundation for building the token economy of future.

home page: https://fractalproject.com/

Executables

The fractal project comes with several wrappers/executables found in the cmd directory.

Command Description
ft Our main fractal CLI client. It is the entry point into the fractal network (main-, test- or private net), It can be used by other processes as a gateway into the fractal network via JSON RPC endpoints exposed on top of HTTP, WebSocket and/or IPC transports. ft -h and the Command Line Options for command line options.
ftfinder ftfinder is a fractal node discoverer.ftfinder -h and the Command Line Options for command line options.

Getting Started

The following instructions overview the process of getting the code, building it, and start node.

How to create first account

You can use fractal wallet to create first account.

Getting the code

To download all of the code:

git clone https://github.com/fractalplatform/fractal

Setting up a build/development environment

Install latest distribution of Go if you don't have it already. (go version >= go1.10 )

Currently supports the following operating systems:

  • Ubuntu 16.04
  • Ubuntu 18.04
  • MacOS Darwin 10.12 and higher

Build Fractal

make all

more information see: Installing Fractal

Running a node

To run ./ft , you can run your own FT instance.

$ ft

Join the fractal main network see: Main Network

Join the fractal test network see: Test Network

Operating a private network see:Private Network

Resources

Fractal Official Website

Fractal Blog

More Documentation see the Fractal wiki

License

Fractal is distributed under the terms of the GPLv3 License.

fractal's People

Contributors

elvis88 avatar erickyan86 avatar findbug2019 avatar fractalplan avatar geekres avatar jacobdenver007 avatar jiaofeng avatar liuji85 avatar musiczombie avatar osoftdeveloper avatar patrickstar619 avatar peekpi avatar rockneiep avatar stathamda avatar syslink 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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)

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.

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?

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?

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.

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

[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"

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.