The POW callback is now a service and its state stored.
The proof of work engine therefore just has to remember its initial hash making server based POW easier.
This commit is contained in:
		@@ -91,7 +91,7 @@ public class SecurityTest {
 | 
			
		||||
        security.doProofOfWork(objectMessage, 1000, 1000,
 | 
			
		||||
                new ProofOfWorkEngine.Callback() {
 | 
			
		||||
                    @Override
 | 
			
		||||
                    public void onNonceCalculated(byte[] nonce) {
 | 
			
		||||
                    public void onNonceCalculated(byte[] initialHash, byte[] nonce) {
 | 
			
		||||
                        waiter.setValue(nonce);
 | 
			
		||||
                    }
 | 
			
		||||
                });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user