SSKInsertSender(SSKBlock block, long uid, InsertTag tag, short htl, PeerNode source, Node node, boolean fromStore, boolean canWriteClientCache, boolean forkOnCacheable, boolean preferInsert, boolean ignoreLowBackoff, boolean realTimeFlag) {
super(block.getKey(), realTimeFlag, source, node, htl, uid);
this.fromStore = fromStore;
this.origUID = uid;
this.origTag = tag;
myKey = block.getKey();
data = block.getRawData();
headers = block.getRawHeaders();
pubKey = myKey.getPubKey();
if(pubKey == null)
throw new IllegalArgumentException("Must have pubkey to insert data!!");
byte[] pubKeyAsBytes = pubKey.asBytes();
pubKeyHash = SHA256.digest(pubKeyAsBytes);
this.block = block;
startTime = System.currentTimeMillis();
this.forkOnCacheable = forkOnCacheable;
this.preferInsert = preferInsert;
this.ignoreLowBackoff = ignoreLowBackoff;
this.realTimeFlag = realTimeFlag;
}