Methods
- B
- F
- N
- P
- R
- S
- V
Class Public methods
Instance Public methods
block_count()
Link
Source: show
# File lib/nanook/node.rb, line 8 def block_count rpc(:block_count) end
block_count_type()
Link
Source: show
# File lib/nanook/node.rb, line 12 def block_count_type rpc(:block_count_type) end
bootstrap(address:, port:)
Link
Source: show
# File lib/nanook/node.rb, line 16 def bootstrap(address:, port:) rpc(:bootstrap, address: address, port: port).has_key?(:success) end
bootstrap_any()
Link
Source: show
# File lib/nanook/node.rb, line 20 def bootstrap_any rpc(:bootstrap_any).has_key?(:success) end
frontier_count()
Link
Source: show
# File lib/nanook/node.rb, line 24 def frontier_count rpc(:frontier_count)[:count] end
representatives()
Link
Source: show
# File lib/nanook/node.rb, line 36 def representatives rpc(:representatives)[:representatives] end
stop()
Link
Source: show
# File lib/nanook/node.rb, line 40 def stop rpc(:stop).has_key?(:success) end
sync_progress()
Link
Source: show
# File lib/nanook/node.rb, line 44 def sync_progress response = rpc(:block_count) count = response[:count] unchecked = response[:unchecked] total = count + unchecked count.to_f * 100 / total.to_f end