kadena-io / juno Goto Github PK
View Code? Open in Web Editor NEWSmart Contracts Running on a BFT Hardened Raft
License: BSD 3-Clause "New" or "Revised" License
Smart Contracts Running on a BFT Hardened Raft
License: BSD 3-Clause "New" or "Revised" License
Principle is spelled as principal in multiple places on the readme file.
Hi:
how about use makeClassy for Config type?
in Config.hs
module Juno.Types.Config
( Config(..)
, HasConfig(..) -- we don't have to list all the fields here
, KeySet(..), ksClient, ksCluster
) where
-- makeLense ''Config
makeClassy ''Config
in Simple.hs
instance HasConfig (RaftEnv m) where
config = cfg
then we can access config field like this:
nid <- view (cfg.nodeId) -- it's ok
nid <- view nodeId -- it's ok too
I'm facing a wierd exception about SHA2 installation, when calling "cabal install". the description ends with ExitFailure1 !!
Attached is the log file
sha2.txt
I'm using Ubuntu 16.04 LTS on Virtual Box.
the build works, but when trying to run ./junoclient.sh it throws
rlwrap: error: Cannot execute junoclient: No such file or directory.
Any troubleshooting would be helpful, and will contribute to adding details to project!
Thanks :)
Is this project still active?
In the read me it says:
"There were fundamental issues with the protocol and implementation that removed further stability, performance, and scalability gains."
I'm curious if those issues were every publicly presented?
Looks like there is an issue running the demo if installing on Mac and using brew to install tmux. Must manually install an older version of tmux <= 1.8 appears to work.
hello everyone :
i have spent a lot of time to read juno code and run the test in my computer
i am trying to implement persistence feature myself, and this is my idea and plan:
1. change Seq LogEntry to Seq (LogIndex, LogEntry), all unapplyed command stay in memory, and all applied command save to database.
2. declare PLogEntry , means persisntent LogEntry:
-- 只保存已经确认并已apply的LogEntry
share [mkPersist sqlSettings, mkMigrate "migrateBlockchain"] [persistLowerCase|
PLogEntry
index Int
term Int
clientId ByteString
requestId ByteString
commandEntry ByteString
commandSig ByteString
quorum_votes ByteString
sig ByteString
hash ByteString
commandResult ByteString
deriving Show
|]
3. when server start , i need to load latest logentry to memory(LastAppliedIndex, LastCommitIndex...)
4. when a command is confirmed and applied, i need to write it to the database
of course it need modify a lot of code ,
is this idea works? or any better idea?
by the way , can i join the dev team and do some develop work? and how?
It really cool that use guy have achieved this and are working on it. I hope you don't mind If I use this heavily as a learning tool for architecting solutions for my own project http://prometheus.network and https://github.com/Prometheus-SCN
It seems that Juno and acid-state (Hackage) is a match made in heaven - eventual consistency with ACID guarantees on each of the nodes, allowing for any* haskell datatype to be easily turned into a distributed shared variable. I was planning to implement this myself, but since large changes are planned, I thought I'd make the suggestion so it can be implemented internally instead of needing to be rewritten once the changes are made.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.