Code Monkey home page Code Monkey logo

grinrelay's People

Contributors

garyyu avatar gitter-badger avatar lehnberg avatar ravidio avatar terryzhao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

terryzhao

grinrelay's Issues

Use 6-code Checksum for Quick Search of Grin Relay Address

Please read the Grin Relay Address Scheme, we have the 6th part as the checksum for the Grin Relay address.

For example, in address tn1-qvgsq0kd-7gvgqksg58fkqm9-ms5cplcllev4fnw-svevuqs2jukrtrc-guuvze, the last part guuvze is the so-called 6-code checksum.

For the convenience of the user, we can provide a Quick Search service: user can input the last 6-code part to launch a searching on Grin Relay server, and the Grin Relay server can return the complete address (or more than one in some rare cases), and use can confirm or pick one as the receiver address.

This feature will be useful for the case which need use manually input the receiver's address and release the pain of this long address format.

Note:

  • For the security, the application MUST remind the user to confirm the returned full address IS the correct receiver address!
  • If the receiver is NOT online, in most cases we don't search that receiver's address. But even we get the right search result, it DOESN'T mean the receiver is online at this moment.

broker thread ending on error

service exit on the following error:

[2019-07-28T02:10:43Z INFO  grinrelay::server] [a1156714-38df-419e-b787-ce015eca77bf] connection established
[2019-07-28T02:10:44Z INFO  grinrelay::server] [a1156714-38df-419e-b787-ce015eca77bf] -> Subscribe to tn1-qvgsq0kd-7gvgqksg58fkqm9-ms5cplcllev4fnw-svevuqs2jukrtrc-guuvze
[2019-07-28T02:10:44Z ERROR grinrelay::broker::rabbit_broker] session error event: ERROR
message:not_found
content-type:text/plain
version:1.0,1.1,1.2
content-length:104

NOT_FOUND - no queue 'tn1-qvgsq0kd-7gvgqksg58fkqm9-ms5cplcllev4fnw-svevuqs2jukrtrc-guuvze' in vhost '/'

[2019-07-28T02:10:44Z INFO  grinrelay::broker::stomp::session] Disconnected.
[2019-07-28T02:10:44Z INFO  grinrelay::server] [a1156714-38df-419e-b787-ce015eca77bf] <- Ok
[2019-07-28T02:10:44Z WARN  grinrelay::broker::rabbit_broker] session [0] disconnected due to [ClosedByOtherSide]
[2019-07-28T02:10:44Z ERROR grinrelay::broker::rabbit_broker] broker thread ending!

RabbitMQ Network partition problem

Network partition detected

Mnesia reports that this RabbitMQ cluster has experienced a network partition. There is a risk of losing data. Please read RabbitMQ documentation about network partitions and the possible solutions.

Node Was partitioned from
eua sga, usa
hk sga, usa
sga eua, hk, usa
usa eua, hk, sga

While running in this partitioned state, changes (such as queue or exchange declaration and binding) which take place in one partition will not be visible to other partition(s). Other behaviour is not guaranteed.

Duplicated Addresses in Active List

Send Cancelled because of risk for abbreviated address conflict.
Please use the full address instead of the short abbr addr
2 addresses matched the same abbreviation address: 
[
"tn1-qw34997h-mxxrc4gx32a7l2u-65d8cuv2f3kvqdg-32243sszlpfnxzv-ckxgak", 
"tn1-qw34997h-mxxrc4gx32a7l2u-65d8cuv2f3kvqdg-32243sszlpfnxzv-ckxgak"
]

Client can't switch to new relay server?

A client which was connected on usa relay server is connecting the hk relay server, but it cause the hk relay sever quit and restart:

[2019-10-15T06:33:49Z ERROR grinrelay::broker::rabbit_broker] session error event: ERROR
message:not_found
content-type:text/plain
version:1.0,1.1,1.2
content-length:174

NOT_FOUND - home node '[email protected]' of durable queue 'tn1-qw3x5lvq-zu4mx5dzdr483hy-allyv00r0yualjs-y8vjqqpff730w8z-h7cwu3' in vhost '/' is down or inaccessible

[2019-10-15T06:33:49Z INFO  grinrelay::broker::stomp::session] Disconnected.
[2019-10-15T06:33:49Z WARN  grinrelay::broker::rabbit_broker] session [0] disconnected due to [ClosedByOtherSide]
[2019-10-15T06:33:49Z ERROR grinrelay::broker::rabbit_broker] broker thread ending!
[2019-10-15T06:33:50Z INFO  grinrelay] This is Grin version 1.0.5 (git v1.0.5-7-gfe1b913), built for x86_64-unknown-linux-gnu by rustc 1.36.0 (a53f9df32 2019-07-03).
[2019-10-15T06:33:51Z INFO  grinrelay] 5rq8yz: tn1-q00k34d9-n2s6zy2snu24rrj-xdcram4dhp02kgm-5zrye7c9yxfxq2u-5rq8yz
[2019-10-15T06:33:51Z INFO  grinrelay] 3ugsve: gn1-qtrf9grd-7uu2egndqshvkkd-8x7nj8kmuvnwqeu-awkr4y4gl7kxc4j-3ugsve
[2019-10-15T06:33:51Z INFO  grinrelay] notify: sga.relay.grin.icu-5a744842-cd4f-480a-b8dd-8ea7b54ae0dd-consumer-notify
[2019-10-15T06:33:51Z INFO  grinrelay] rabbit_consumer_monitor start
[2019-10-15T06:33:51Z INFO  amqp::session] Session initialized
[2019-10-15T06:33:51Z INFO  grinrelay] Opened channel: 1
[2019-10-15T06:33:52Z INFO  grinrelay] Queue declared: DeclareOk { queue: "hk.relay.grin.icu-9f830990-44d2-462a-b6a7-dad553e56d5a-consumer-notify", message_count: 0, consumer_count: 0 }
[2019-10-15T06:33:54Z INFO  grinrelay] queue bind successfully
[2019-10-15T06:33:54Z INFO  grinrelay] Starting consumer Ok("amq.ctag-bz3cgT5hgmbdneD2KKDUaw")
[2019-10-15T06:33:54Z INFO  grinrelay] Broker URI: 127.0.0.1:61613
[2019-10-15T06:33:54Z INFO  grinrelay] Bind address: 0.0.0.0:3418
[2019-10-15T06:33:54Z INFO  grinrelay::server] broker handler started
[2019-10-15T06:33:54Z INFO  ws] Listening for new connections on 0.0.0.0:3418.
[2019-10-15T06:33:54Z INFO  grinrelay::broker::rabbit_broker] established broker session
[2019-10-15T06:33:56Z INFO  ws::io] Accepted a new tcp connection from 18.162.90.21:51754.
[2019-10-15T06:33:56Z INFO  grinrelay::server] [7ca81f8e-8f95-4e8d-b170-045192337687] connection established
[2019-10-15T06:33:56Z INFO  grinrelay::server] [7ca81f8e-8f95-4e8d-b170-045192337687] -> Subscribe to tn1-q05y5n9x-67cec43ngu3ppfa-448sj75u36przms-zw6elmauj7q4dl7-xsfvx9
[2019-10-15T06:33:56Z INFO  grinrelay::server] [7ca81f8e-8f95-4e8d-b170-045192337687] <- Ok

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.