Merge branch 'master' into cleanup
This commit is contained in:
commit
1f55856067
|
@ -44,16 +44,7 @@ public class PeersMessage extends Message {
|
|||
|
||||
RLPList peerParams = (RLPList)paramsList.getElement(i);
|
||||
|
||||
RLPItem ip_a = (RLPItem)((RLPList) peerParams.getElement(0)).getElement(0);
|
||||
RLPItem ip_b = (RLPItem)((RLPList) peerParams.getElement(0)).getElement(1);
|
||||
RLPItem ip_c = (RLPItem)((RLPList) peerParams.getElement(0)).getElement(2);
|
||||
RLPItem ip_d = (RLPItem)((RLPList) peerParams.getElement(0)).getElement(3);
|
||||
byte ipA = ip_a.getData() == null ? 0 : ip_a.getData()[0];
|
||||
byte ipB = ip_b.getData() == null ? 0 : ip_b.getData()[0];
|
||||
byte ipC = ip_c.getData() == null ? 0 : ip_c.getData()[0];
|
||||
byte ipD = ip_d.getData() == null ? 0 : ip_d.getData()[0];
|
||||
|
||||
byte[] ip = new byte[]{ipA, ipB, ipC, ipD};
|
||||
byte[] ip = ((RLPItem) peerParams.getElement(0)).getData();
|
||||
|
||||
byte[] shortData = ((RLPItem) peerParams.getElement(1)).getData();
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ import java.math.BigInteger;
|
|||
*/
|
||||
public class BlockTest {
|
||||
|
||||
@Test /* Creating genesis hash */
|
||||
@Test /* Creating genesis hash not ready yet */
|
||||
public void test1() throws IOException {
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue