kaistshadow / blockchain-sim

Scalable blockchain simulator/emulator running on shadow simulator
MIT License
9 stars 1 forks source link

Implementing a basic handshaking mechanism of Monero Adapter (of sybilAPI) #277

Closed ygnkim closed 3 years ago

ygnkim commented 3 years ago

The very basic functionality of the Monero Adapter (of sybilAPI) is handshaking mechanism which enables peer connection between different Monero nodes.

The regression test test_verack_monero initiates emulated Monero node and tries to make a connection to the target Monero node. In order to complete the connection process between two Monero nodes, version handshaking mechanism should be implemented. It should be implemented within OpAfterConnect callback function within Monero Adapter.

Originally posted by @ygnkim in https://github.com/kaistshadow/blockchain-sim/issues/275#issuecomment-803721931

ygnkim commented 3 years ago

타겟 모네로 노드에 대해 연결을 맺고 유지하는 것까지 테스트 완료 tests/regtest/2_sybilAPI/4_verack_with_monero 폴더에 두개의 테스트를 만들었고, 제대로 동작하는지 확인함.

테스트 1. check.py

테스트 2 check_two.py