SHA256
Добавить кошелек блокчейна и озвучивание агента
This commit is contained in:
+3
@@ -89,6 +89,9 @@ public class Net_GetUser_Handler implements JsonMessageHandler {
|
||||
}
|
||||
resp.setServerLastGlobalNumber(lastNum);
|
||||
resp.setServerLastGlobalHash(toHex32(lastHash));
|
||||
resp.setServerBlockchainSizeBytes(st.getFileSizeBytes());
|
||||
resp.setServerBlockchainSizeLimitBytes(st.getSizeLimit());
|
||||
resp.setServerBlocksCount(Math.max(0, lastNum + 1));
|
||||
|
||||
log.info("✅ GetUser: found login={}, blockchainName={}", u.getLogin(), u.getBlockchainName());
|
||||
return resp;
|
||||
|
||||
+12
@@ -41,6 +41,9 @@ public class Net_GetUser_Response extends Net_Response {
|
||||
private String deviceKey;
|
||||
private Integer serverLastGlobalNumber;
|
||||
private String serverLastGlobalHash;
|
||||
private Long serverBlockchainSizeBytes;
|
||||
private Long serverBlockchainSizeLimitBytes;
|
||||
private Integer serverBlocksCount;
|
||||
|
||||
public Boolean getExists() { return exists; }
|
||||
public void setExists(Boolean exists) { this.exists = exists; }
|
||||
@@ -65,4 +68,13 @@ public class Net_GetUser_Response extends Net_Response {
|
||||
|
||||
public String getServerLastGlobalHash() { return serverLastGlobalHash; }
|
||||
public void setServerLastGlobalHash(String serverLastGlobalHash) { this.serverLastGlobalHash = serverLastGlobalHash; }
|
||||
|
||||
public Long getServerBlockchainSizeBytes() { return serverBlockchainSizeBytes; }
|
||||
public void setServerBlockchainSizeBytes(Long serverBlockchainSizeBytes) { this.serverBlockchainSizeBytes = serverBlockchainSizeBytes; }
|
||||
|
||||
public Long getServerBlockchainSizeLimitBytes() { return serverBlockchainSizeLimitBytes; }
|
||||
public void setServerBlockchainSizeLimitBytes(Long serverBlockchainSizeLimitBytes) { this.serverBlockchainSizeLimitBytes = serverBlockchainSizeLimitBytes; }
|
||||
|
||||
public Integer getServerBlocksCount() { return serverBlocksCount; }
|
||||
public void setServerBlocksCount(Integer serverBlocksCount) { this.serverBlocksCount = serverBlocksCount; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user