Skip to content
Snippets Groups Projects

[+] The work with the list of DAG events has been transferred to the use of a...

Merged alexey.stratulat requested to merge features-6345 into release-1.1
4 files
+ 114
87
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 11
0
from DAP.Core import logIt
from CellFrame.Network import Net
from CellFrame.Chain import ChainAddr
import datetime
@@ -111,3 +112,13 @@ def is_valid_args(args, isChain = False, isHash = False, isAddr = False):
err = {"error": {"code": 6, "msg": "The hash of the addr is not specified."}}
valid = False
return (valid, err)
def count_atom(net, chain_name):
chain_net = Net.byName(net)
if chain_net is None:
return 0
chain = chain_net.getChainByName(chain_name)
if chain is None:
return 0
return chain.countAtom()
Loading