mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Added contract process execution functions. (#6)
This commit is contained in:
16
src/conf.cpp
16
src/conf.cpp
@@ -151,22 +151,22 @@ void save_config()
|
||||
d.AddMember("listenip", StringRef(cfg.listenip.data()), allocator);
|
||||
|
||||
Value peers(kArrayType);
|
||||
d.AddMember("peers", peers, allocator);
|
||||
for (int i = 0; i < cfg.peers.size(); i++)
|
||||
for (string peer : cfg.peers)
|
||||
{
|
||||
Value v;
|
||||
v.SetString(StringRef(cfg.peers[i].data()), allocator);
|
||||
v.SetString(StringRef(peer.data()), allocator);
|
||||
peers.PushBack(v, allocator);
|
||||
}
|
||||
d.AddMember("peers", peers, allocator);
|
||||
|
||||
Value unl(kArrayType);
|
||||
d.AddMember("unl", unl, allocator);
|
||||
for (int i = 0; i < cfg.unl.size(); i++)
|
||||
for (string node : cfg.unl)
|
||||
{
|
||||
Value v;
|
||||
v.SetString(StringRef(cfg.unl[i].data()), allocator);
|
||||
v.SetString(StringRef(node.data()), allocator);
|
||||
unl.PushBack(v, allocator);
|
||||
}
|
||||
d.AddMember("unl", unl, allocator);
|
||||
|
||||
d.AddMember("peerport", cfg.peerport, allocator);
|
||||
d.AddMember("roundtime", cfg.roundtime, allocator);
|
||||
@@ -241,10 +241,6 @@ int init(int argc, char **argv)
|
||||
//Clear the keys. crpyto::init will automatically init the keys.
|
||||
clear_keys();
|
||||
}
|
||||
else if (ctx.command == "run")
|
||||
{
|
||||
//TO DO: Contract run logic.
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user