change consensus cache loader
@@ -266,10 +266,10 @@ public class UtxoLedgerServiceImplTest {
// createSetAliasTransaction(ecKey1, "alias1");
// createSetAliasTransaction(ecKey2, "alias");
- RegisterAgentTransaction tx1 = createRegisterAgentTransaction(ecKey1, ecKey2, "agentName");
- RegisterAgentTransaction tx2 = createRegisterAgentTransaction(ecKey2, ecKey3, "agentName");
- RegisterAgentTransaction tx3 = createRegisterAgentTransaction(ecKey4, ecKey5, "agentName2");
- RegisterAgentTransaction tx4 = createRegisterAgentTransaction(ecKey1, ecKey3, "agentName3");
+ CreateAgentTransaction tx1 = createRegisterAgentTransaction(ecKey1, ecKey2, "agentName");
+ CreateAgentTransaction tx2 = createRegisterAgentTransaction(ecKey2, ecKey3, "agentName");
+ CreateAgentTransaction tx3 = createRegisterAgentTransaction(ecKey4, ecKey5, "agentName2");
+ CreateAgentTransaction tx4 = createRegisterAgentTransaction(ecKey1, ecKey3, "agentName3");
list.add(tx1);
list.add(tx2);
list.add(tx3);
@@ -344,7 +344,7 @@ public class UtxoLedgerServiceImplTest {
setCommonFields(tx);
StopAgent txData = new StopAgent();
txData.setAddress(AddressTool.getAddress(ecKey.getPubKey()));
- txData.setRegisterTxHash(agentTxHash);
+ txData.setCreateTxHash(agentTxHash);
tx.setTxData(txData);
signTransaction(tx, ecKey);
return tx;
@@ -366,8 +366,8 @@ public class UtxoLedgerServiceImplTest {
return tx;
}
- private static RegisterAgentTransaction createRegisterAgentTransaction(ECKey ecKey1, ECKey ecKey2, String agentName) throws IOException {
- RegisterAgentTransaction tx = new RegisterAgentTransaction();
+ private static CreateAgentTransaction createRegisterAgentTransaction(ECKey ecKey1, ECKey ecKey2, String agentName) throws IOException {
+ CreateAgentTransaction tx = new CreateAgentTransaction();
setCommonFields(tx);
Agent agent = new Agent();
agent.setBlockHeight(1);
