Skip to content

Instantly share code, notes, and snippets.

View DylanVerstraete's full-sized avatar

Dylan Verstraete DylanVerstraete

  • Ghent, Belgium
View GitHub Profile
Jan 08 10:53:03 dylan-pc kernel: pci 0000:00:08.1: PCI bridge to [bus 09]
Jan 08 10:53:03 dylan-pc kernel: pci 0000:00:08.1: bridge window [mem 0xf7200000-0xf74fffff]
Jan 08 10:53:03 dylan-pc kernel: pci 0000:0a:00.0: [1022:7901] type 00 class 0x010601
Jan 08 10:53:03 dylan-pc kernel: pci 0000:0a:00.0: reg 0x24: [mem 0xf7800000-0xf78007ff]
Jan 08 10:53:03 dylan-pc kernel: pci 0000:0a:00.0: enabling Extended Tags
Jan 08 10:53:03 dylan-pc kernel: pci 0000:0a:00.0: PME# supported from D3hot D3cold
Jan 08 10:53:03 dylan-pc kernel: pci 0000:00:08.3: PCI bridge to [bus 0a]
Jan 08 10:53:03 dylan-pc kernel: pci 0000:00:08.3: bridge window [mem 0xf7800000-0xf78fffff]
Jan 08 10:53:03 dylan-pc kernel: ACPI: PCI Interrupt Link [LNKA] (IRQs 4 5 7 10 11 14 15) *0
Jan 08 10:53:03 dylan-pc kernel: ACPI: PCI Interrupt Link [LNKB] (IRQs 4 5 7 10 11 14 15) *0
Jan 08 10:55:42 dylan-pc kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-5.4-x86_64 root=UUID=3f531274-0257-42de-b105-07d914f46133 rw quiet apparmor=1 security=apparmor udev.log_priority=3
Jan 08 10:55:42 dylan-pc kernel: KERNEL supported cpus:
Jan 08 10:55:42 dylan-pc kernel: Intel GenuineIntel
Jan 08 10:55:42 dylan-pc kernel: AMD AuthenticAMD
Jan 08 10:55:42 dylan-pc kernel: Hygon HygonGenuine
Jan 08 10:55:42 dylan-pc kernel: Centaur CentaurHauls
Jan 08 10:55:42 dylan-pc kernel: zhaoxin Shanghai
Jan 08 10:55:42 dylan-pc kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Jan 08 10:55:42 dylan-pc kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Jan 08 10:55:42 dylan-pc kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
go build -ldflags '-X github.com/threefoldfoundation/tfchain/pkg/config.rawVersion=v1.2.1-2645419 -s -w' -o /home/dylan/go/bin/tfchaind ./cmd/tfchaind
# github.com/threefoldfoundation/tfchain/vendor/gopkg.in/olebedev/go-duktape.v3
In file included from _cgo_export.c:4:
debugger.go:22:13: warning: ‘_duk_debugger_attach’ defined but not used [-Wunused-function]
# github.com/threefoldfoundation/tfchain/vendor/gopkg.in/olebedev/go-duktape.v3
duk_logging.c: In function ‘duk__logger_prototype_log_shared’:
duk_logging.c:184:64: warning: ‘Z’ directive writing 1 byte into a region of size between 0 and 9 [-Wformat-overflow=]
184 | sprintf((char *) date_buf, "%04d-%02d-%02dT%02d:%02d:%02d.%03dZ",
| ^
duk_logging.c:184:2: note: ‘sprintf’ output between 25 and 85 bytes into a destination of size 32
➜ consensus cat consensus.log
2020/01/10 14:05:37.997395 persist.go:66: STARTUP: Logging has started. tfchain Version 1.2.1-2645419
2020/01/10 14:05:38.331903 plugin.go:56: [DEBUG] Registering plugin erc20
2020/01/10 14:05:38.331953 plugin.go:339: [DEBUG] Creating new pluginstorage for erc20
2020/01/10 14:05:38.667849 plugin.go:56: [DEBUG] Registering plugin threebot
2020/01/10 14:05:38.667912 plugin.go:339: [DEBUG] Creating new pluginstorage for threebot
2020/01/10 14:05:38.979843 plugin.go:56: [DEBUG] Registering plugin minting
2020/01/10 14:05:38.979906 plugin.go:339: [DEBUG] Creating new pluginstorage for minting
2020/01/10 14:05:39.147850 plugin.go:56: [DEBUG] Registering plugin authcointx
2020/01/10 14:05:39.147938 plugin.go:339: [DEBUG] Creating new pluginstorage for authcointx
➜ /tmp/jsx container-install
DOWNLOADED INSTALLTOOLS TO /tmp/InstallTools.py
- Docker machine gets created:
docker run --name=3bot --hostname=3bot -d -p 9005-9009:8005-8009 -p 9001:9001/udp -p 9000:22 --device=/dev/net/tun --cap-add=NET_ADMIN --cap-add=SYS_ADMIN --cap-add=DAC_OVERRIDE --cap-add=DAC_READ_SEARCH -v /Users/dylan/sandbox/code:/sandbox/code -v /Users/dylan/sandbox/var/containers/shared:/sandbox/myhost threefoldtech/3bot /sbin/my_init
Unable to find image 'threefoldtech/3bot:latest' locally
latest: Pulling from threefoldtech/3bot
985a8558cdd3: Pulling fs layer
93f91e1801f4: Pulling fs layer
93f91e1801f4: Verifying Checksum
root@d9844f7303d8:/# /tmp/jsx install
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5m5n3KqpSkFLG59PU2Geq8dofT0Ho5iDBaqR+qE3uBWd1MS3yNyymbC60IC1XvT736tss+AlfgZ76WDr/7ajY2Ruz3BsGkftYOpzhQOCXGmKtccqnqHjsMjpPG3S9TBIsEcp4Mu9DST+IX4wEC0uOS0t3cFK1lfIY659q+zaSaGAzZlkjMynJhTSw0rY3D73GdHWTBd4M+equIBSnkJBfFIjv52WTKZC7elI0wdKYItKxyZZU95BmwPCjJvfRQM6mbVn7yIgDNU6kxsOmd/Bbb8NQQqtXseDMvule2YdLXZ9PpqTLqvCx9KVCSm6W4UfDhv+c/UAQ+038QWmzeWab /root/.ssh/id_rsa
- get sandbox repos from git
Cloning into 'home'...
Warning: Permanently added the RSA host key for IP address '140.82.118.4' to the list of known hosts.
fatal: Remote branch development not found in upstream origin
Wed 15 08:57:29 tall/InstallTools.py -4325 - repos_get : EXCEPTION:
NameError("name 'j' is not defined",)
--TRACEBACK------------------
/tmp/jsx in <module>
from Jumpscale import j
try:
from stellar_sdk import Server, Keypair, TransactionBuilder, Network
from stellar_sdk.exceptions import BadRequestError
except (ModuleNotFoundError, ImportError):
j.builders.runtime.python3.pip_package_install("stellar_sdk")
try:
from stellar_base import Address
except (ModuleNotFoundError, ImportError):
for co in tx.coin_outputs:
lock_time = co.condition.lock.value
if time.time() < lock_time:
# make timelocked tx
try:
converter.transfer_locked_funds(stellar_address, co.value, asset, co.condition.lock.value)
except Exception as e:
raise e
from Jumpscale import j
class transactions(j.baseclasses.threebot_actor):
def _init(self, **kwargs):
self.unlockhash_transaction_model = j.threebot.packages.stellar_unlock_service.bcdb.model_get(
url="threefoldfoundation.stellar_unlock_service.unlockhash_transaction.1"
)
@j.baseclasses.actor_method
class Package(j.baseclasses.threebot_package):
def start(self):
server = self.openresty
server.install(reset=False)
port = 8901
website = server.get_from_port(port)
locations = website.locations.get()
actor_location = locations.locations_custom.new()
actor_location.name = "unlock_service"